import { Route } from '@angular/router';
import { PARTNER_ACCOUNTS_ROUTES } from './modules/accounts/constants';
import { PARTNER_CONSUMERS_ROUTES } from './modules/consumers/constants';
import { PARTNER_LICENSES_ROUTES } from './modules/licenses/constants';

export const PARTNER_ROUTES = {
  path: 'partner',
  loadComponent: () => import('./layouts/layout.component').then((m) => m.LayoutComponent),
  children: [
    {
      path: '',
      loadComponent: () =>
        import('./modules/dashboard/views/index.component').then((m) => m.DashboardComponent),
    },
    ...PARTNER_ACCOUNTS_ROUTES,
    ...PARTNER_CONSUMERS_ROUTES,
    ...PARTNER_LICENSES_ROUTES,
  ],
} as Route;
