import { NamedRoutes } from '@/core';
import { Routes } from '@angular/router';

export type TDevicesRouteNames = 'devices';

export const devicesRoutes: NamedRoutes<TDevicesRouteNames> = {
  devices: {
    path: 'devices',
    loadComponent: () => import('../../views/list.component').then((m) => m.DevicesComponent),
    meta: {
      title: 'دستگاه‌ها',
      pagePath: () => '/super_admin/devices',
    },
  },
};

export const DEVICES_ROUTES: Routes = Object.values(devicesRoutes);
