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/stockKeepingUnits/list.component').then(
        (m) => m.GuildStockKeepingUnitsComponent,
      ),
    meta: {
      title: 'شناسه کالاها',
      pagePath: () => '/super_admin/guilds/:guildId/stock-keeping-units',
    },
  },
};

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