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

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

const staff: AppRouteModule = {
  path: '/rightsEnterprises',
  name: 'RightsEnterprises',
  component: LAYOUT,
  redirect: '/rightsEnterprises/rights/list',
  meta: {
    icon: 'bi:columns',
    title: t('routes.rightsEnterprises.menuName'),
    orderNo: 150,
  },
  children: [
    {
      path: 'camera/list',
      name: 'CameraList',
      // component: () => import('/@/views/rightsEnterprises/enterprises.vue'),
      component: () => import('/@/views/rightsEnterprises/cameraList.vue'),
      meta: {
        title: t('routes.rightsEnterprises.staffList'),
        icon: 'ic:outline-remember-me',
        hideChildrenInMenu: true,
      },
      children: [
        {
          path: 'camera/detail/:id',
          name: 'CameraDetail',
          component: () => import('/@/views/rightsEnterprises/cameraDetail.vue'),
          meta: {
            currentActiveMenu: '/rightsEnterprises/camera/list',
            title: t('routes.rightsEnterprises.staffList'),
            hideMenu: true,
            dynamicLevel: 3,
            realPath: '/rightsEnterprises/camera/detail',
          },
        },
      ],
    },
    {
      path: 'rights/list',
      name: 'RightsList',
      component: () => import('/@/views/rightsEnterprises/rightsList.vue'),
      meta: {
        title: t('routes.rightsEnterprises.staffList'),
        icon: 'ic:outline-remember-me',
        hideChildrenInMenu: true,
      },
      children: [
        {
          path: 'rights/detail/:id',
          name: 'RightsDetail',
          component: () => import('/@/views/rightsEnterprises/rightsDetail.vue'),
          meta: {
            currentActiveMenu: '/rightsEnterprises/rights/list',
            title: t('routes.dashboard.orderDetail'),
            hideMenu: true,
            dynamicLevel: 3,
            realPath: '/rightsEnterprises/rights/detail',
          },
        },
      ],
    },
  ],
};

export default staff;
