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

export const Retailer: AppRouteRecordRaw = {
  path: '/retailer',
  name: 'Retailer',
  redirect: '/retailer/index',
  component: LAYOUT,
  meta: {
    title: t('routes.dashboard.retailer'),
    icon: 'fluent:building-retail-toolbox-20-regular',
    orderNo: 4,
    hideChildrenInMenu: true,
    roles: [RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2, RoleEnum.LEVEL2s, RoleEnum.DISTRIBUTOR],
  },
  children: [
    {
      path: 'index',
      name: 'RetailerIndex',
      component: () => import('/@/views/retailer/index.vue'),
      meta: {
        title: t('routes.dashboard.retailer'),
        hideBreadcrumb: true,
        roles: [RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2, RoleEnum.LEVEL2s],
        // icon: 'codicon:device-camera',
      },
    },
  ],
};
export default Retailer;
