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

export type TShopRouteNames = 'shop';

const baseRoute = `${config.isPosApplication ? '' : '/pos'}/shop`;

export const PosShopNamedRoutes: NamedRoutes<TShopRouteNames> = {
  shop: {
    path: 'shop',
    loadComponent: () => import('../../views/root.component').then((m) => m.PosShopComponent),
    meta: {
      title: 'فروشگاه',
      pagePath: () => baseRoute,
    },
  },
};

export const POS_SHOP_ROUTES: Routes = [PosShopNamedRoutes.shop];
