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

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

export const posSupportNamedRoutes: NamedRoutes<TPosSupportRouteNames> = {
  support: {
    path: 'support',
    loadComponent: () =>
      import('../../views/root.component').then((m) => m.PosSupportPageComponent),
    meta: {
      title: 'پشتیبانی',
      pagePath: () => baseRoute,
    },
  },
};

export const POS_SUPPORT_ROUTES: Routes = [posSupportNamedRoutes.support];
