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

export type TPOSRouteNames = 'POS';

export const posNamedRoutes: NamedRoutes<TPOSRouteNames> = {
  POS: {
    path: 'pos/:posId',
    loadComponent: () => import('../../views/pos.component').then((m) => m.POSComponent),
    meta: {
      title: 'نقاط فروش',
      pagePath: (params) => `/pos/${params.posId}`,
    },
  },
};

export const POS_ROUTES: Routes = Object.values(posNamedRoutes);
