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

export const customer: AppRouteRecordRaw = {
  path: '/customer',
  name: 'Customer',
  redirect: '/customer/index',
  component: LAYOUT,
  meta: {
    title: t('routes.dashboard.customer'),
    icon: 'raphael:customer',
    orderNo: 112,
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'index',
      name: 'CustomerIndex',
      component: () => import('/@/views/customer/index.vue'),
      meta: {
        title: t('routes.dashboard.customer'),
        hideBreadcrumb: true,
        // icon: 'la:file-invoice-dollar',
      },
    },
    {
      path: 'device/:id',
      name: 'Device',
      component: () => import('/@/views/customer/device.vue'),

      meta: {
        title: t('routes.dashboard.customerDevice'),
        hideMenu: true,
        hideBreadcrumb: true,
        // icon: 'la:file-invoice-dollar',
      },
    },
    {
      path: 'scene/:id',
      name: 'Scene',
      component: () => import('/@/views/customer/scene.vue'),
      meta: {
        title: t('routes.dashboard.customerScene'),
        hideMenu: true,
        hideBreadcrumb: true,
        // icon: 'la:file-invoice-dollar',
      },
    },
  ],
};
export default customer;
