import type { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'
import { ModuleKey } from '@/enums/ModuleEnum'

const UnderConstruction = () => import('@/views/placeholder/UnderConstruction.vue')

/**
 * 项目 / 工资 / 官网 占位模块（本期未实现）
 */
const placeholderRoutes: RouteRecordRaw[] = [
    {
        path: '/project',
        component: Layout,
        meta: { module: ModuleKey.PROJECT, title: '项目' },
        children: [
            { path: '', name: 'ProjectIndex', component: UnderConstruction, meta: { module: ModuleKey.PROJECT, title: '项目' } },
        ],
    },
    {
        path: '/salary',
        component: Layout,
        meta: { module: ModuleKey.SALARY, title: '工资' },
        children: [
            { path: '', name: 'SalaryIndex', component: UnderConstruction, meta: { module: ModuleKey.SALARY, title: '工资' } },
        ],
    },
    {
        path: '/website',
        component: Layout,
        meta: { module: ModuleKey.WEBSITE, title: '官网' },
        children: [
            { path: '', name: 'WebsiteIndex', component: UnderConstruction, meta: { module: ModuleKey.WEBSITE, title: '官网' } },
        ],
    },
]

export default placeholderRoutes
