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

export type TStockKeepingUnitsRouteNames = 'stockKeepingUnits';

export const stockKeepingUnitsNamedRoutes: NamedRoutes<TStockKeepingUnitsRouteNames> = {
  stockKeepingUnits: {
    path: 'stock-keeping-units',
    loadComponent: () =>
      import('../../views/list.component').then((m) => m.StockKeepingUnitsComponent),
    meta: {
      title: 'واحدهای شناسه کالا',
      pagePath: () => '/super_admin/stock-keeping-units',
    },
  },
};

export const STOCK_KEEPING_UNITS_ROUTES: Routes = Object.values(stockKeepingUnitsNamedRoutes);
