import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const order: AppRouteModule = {
  path: '/order',
  name: 'Order',
  component: LAYOUT,
  redirect: '/order/camera',
  meta: {
    icon: 'fluent:re-order-dots-horizontal-16-filled',
    title: t('routes.dashboard.orderList'),
    orderNo: 108,
  },
  children: [
    {
      path: 'camera',
      name: 'Camera',
      // component: () => import('/@/views/dashboard/test/index.vue'),
      component: () => import('/@/views/order/cameraList.vue'),
      meta: {
        title: t('routes.dashboard.orderCamera'),
        icon: 'codicon:device-camera',
        hideChildrenInMenu: true,
      },
    },
    {
      path: 'equity',
      name: 'Equity',
      component: () => import('/@/views/order/equityList.vue'),
      // component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: t('routes.dashboard.orderEquity'),
        icon: 'icon-park-twotone:vip-one',
        hideChildrenInMenu: true,
      },
    },
    {
      path: 'download',
      name: 'Download',
      component: () => import('/@/views/order/downloadList.vue'),
      // component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: t('routes.dashboard.orderDownload'),
        icon: 'eva:download-fill',
        hideChildrenInMenu: true,
      },
    },
  ],
};

export default order;
