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

export type TGuildGoodCategoriesRouteNames = 'goodCategories';

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

export const GUILD_GOOD_CATEGORIES_ROUTES: Routes = Object.values(guildGoodCategoriesNamedRoutes);
