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

export type TGuildGoodsRouteNames = 'goods';

export const guildGoodsNamedRoutes: NamedRoutes<TGuildGoodsRouteNames> = {
  goods: {
    path: 'goods',
    loadComponent: () =>
      import('../../views/goods/list.component').then((m) => m.GuildGoodsComponent),
    // @ts-ignore
    meta: {
      title: 'کالاها',
      pagePath: (guildId: string) => `/super_admin/guilds/${guildId}/goods`,
    },
  },
  // goodCategory: {
  //   path: 'good_categories/:categoryId',
  //   loadComponent: () => import('../../views/categories/').then((m) => m.GuildComponent),
  //   // @ts-ignore
  //   meta: {
  //     title: 'دسته‌بندی‌ کالا',
  //   },
  // },
};

export const GUILD_GOODS_ROUTES: Routes = Object.values(guildGoodsNamedRoutes);
