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

export const Spares: AppRouteRecordRaw = {
  path: '/spares',
  name: 'Spares',
  redirect: '/spares/index',
  component: LAYOUT,
  meta: {
    title: '备件管理',
    icon: 'codicon:device-camera',
    orderNo: 4,
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'index',
      name: 'SparesIndex',
      component: () => import('/@/views/spares/list.vue'),
      meta: {
        title: '备件管理',
        hideBreadcrumb: true,
        // icon: 'codicon:device-camera',
      },
    },
  ],
};
export default Spares;