import { Routes } from '@angular/router';
import { About } from '../../admin/about/about';
import { Resume } from '../../admin/resume/resume';
import { Projects } from '../../admin/projects/projects';

/**
 * Admin layout child routes.
 *
 * Notes:
 * - Uses a dedicated `Routes` constant for better maintainability.
 * - Titles are centralized as constants to avoid magic strings.
 * - `pathMatch: 'full'` on the default route ensures exact matching.
 * - Ready for lazy-loading or guards if needed in future.
 */

const enum AdminRouteTitles {
    About = 'About',
    Resume = 'Resume',
    Projects = 'Projects',
}

export const adminLayoutRoutes: Routes = [
    {
        path: '',
        component: About,
        title: AdminRouteTitles.About,
    },
    {
        path: 'resume',
        component: Resume,
        title: AdminRouteTitles.Resume,
    },
    {
        path: 'projects',
        component: Projects,
        title: AdminRouteTitles.Projects,
    },
];