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

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

const devices: AppRouteModule = {
  path: '/devices',
  name: 'Devices',
  component: LAYOUT,
  redirect: '/devices/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'tabler:device-computer-camera',
    title: t('routes.dashboard.devices'),
    orderNo: 102,
  },
  children: [
    {
      path: 'index',
      name: 'DevicesList',
      component: () => import('/@/views/devices/list.vue'),
      meta: {
        title: t('routes.dashboard.devices'),
        icon: 'tabler:device-computer-camera',
        hideMenu: true,
      },
    },
  ],
};

export default devices;
