import type { AppRouteModule } from '/@/router/types';
import { RoleEnum } from '/@/enums/roleEnum';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const staff: AppRouteModule = {
  path: '/staff',
  name: 'Staff',
  component: LAYOUT,
  redirect: '/staff/list',
  meta: {
    icon: 'medical-icon:care-staff-area',
    title: t('routes.dashboard.staff'),
    orderNo: 102,
    roles: [RoleEnum.SUPER, RoleEnum.PLAT_ADMIN, RoleEnum.COMPANY_ADMIN],
  },
  children: [
    {
      path: 'list',
      name: 'StaffList',
      component: () => import('/@/views/staff/list.vue'),
      meta: {
        title: t('routes.dashboard.staffList'),
        icon: 'ic:outline-remember-me',
        roles: [RoleEnum.SUPER, RoleEnum.PLAT_ADMIN, RoleEnum.COMPANY_ADMIN],
      },
    },
  ],
};

export default staff;
