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

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

export const posAboutNamedRoutes: NamedRoutes<TPosAboutRouteNames> = {
  about: {
    path: 'about',
    loadComponent: () => import('../../views/root.component').then((m) => m.PosAboutPageComponent),
    meta: {
      title: 'درباره سیستم',
      pagePath: () => baseRoute,
    },
  },
};

export const POS_ABOUT_ROUTES: Routes = [posAboutNamedRoutes.about];
