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

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

const order: AppRouteModule = {
  path: '/operate',
  name: 'Operate',
  component: LAYOUT,
  redirect: '/operate/news',
  meta: {
    icon: 'bi:columns',
    title: t('routes.dashboard.operate'),
    orderNo: 102,
  },
  children: [
    {
      path: 'news',
      name: 'News',
      // component: () => import('/@/views/dashboard/test/index.vue'),
      component: () => import('/@/views/operate/newsList.vue'),
      meta: {
        title: t('routes.dashboard.operateNews'),
        icon: 'carbon:notification-new',
        hideChildrenInMenu: true,
      },
    },
    {
      path: 'recruit',
      name: 'Recruit',
      component: () => import('/@/views/operate/recruitList.vue'),
      // component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: t('routes.dashboard.operateRecruit'),
        icon: 'ci:add-to-queue',
        hideChildrenInMenu: true,
      },
    },
    {
      path: 'message',
      name: 'Message',
      component: () => import('/@/views/operate/messageList.vue'),
      // component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: t('routes.dashboard.operateMessage'),
        icon: 'bx:list-ul',
        hideChildrenInMenu: true,
      },
    },
    {
      path: 'dealer',
      name: 'Dealer',
      component: () => import('/@/views/operate/dealerList.vue'),
      // component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: t('routes.dashboard.operateMessage'),
        icon: 'bx:list-ul',
        hideChildrenInMenu: true,
      },
    },
  ],
};

export default order;
