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

export type TPosAuthRouteNames = 'login';

const baseRoute = `auth`;

export const posAuthNamedRoutes: NamedRoutes<TPosAuthRouteNames> = {
  login: {
    path: 'auth',
    loadComponent: () => import('../../views/auth.component').then((m) => m.PosAuthComponent),
    meta: {
      title: 'ورود',
      pagePath: () => baseRoute,
    },
  },
};

export const POS_AUTH_ROUTES: Routes = [posAuthNamedRoutes.login];
