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

export const Device: AppRouteRecordRaw = {
  path: '/device',
  name: 'Device',
  redirect: '/device/index',
  component: LAYOUT,
  meta: {
    title: t('routes.dashboard.devices'),
    icon: 'codicon:device-camera',
    orderNo: 4,
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'index',
      name: 'DeviceIndex',
      component: () => import('/@/views/device/index.vue'),
      meta: {
        title: t('routes.dashboard.devices'),
        hideBreadcrumb: true,
        // icon: 'codicon:device-camera',
      },
    },
  ],
};
export default Device;