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

export type TStatisticsRouteNames = 'statistics';

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

export const StatisticsRoutes: NamedRoutes<TStatisticsRouteNames> = {
  statistics: {
    path: '',
    loadComponent: () =>
      import('../../views/root.component').then((m) => m.PosStatisticsRootComponent),
    meta: {
      title: 'داشبودر',
      pagePath: () => baseRoute,
    },
  },
};

export const POS_STATISTICS_ROUTES: Routes = [StatisticsRoutes.statistics];
