import type { IModuleDefinition } from '../../core/types';
import { DashboardPage } from './pages/DashboardPage';
import { AssetListPage } from './pages/AssetListPage';
import { AssetRegisterPage } from './pages/AssetRegisterPage';
import { AssetSettingsPage } from './pages/AssetSettingsPage';
import { AssetDetailPage } from './pages/AssetDetailPage';

export const assetModule: IModuleDefinition = {
    moduleName: 'asset-management',
    basePath: '/asset',
    routes: [
        { path: '/dashboard', element: <DashboardPage />, label: '대시보드', group: '기본' },
        { path: '/list', element: <AssetListPage />, label: '자산 목록', group: '기본' },
        { path: '/register', element: <AssetRegisterPage />, label: '자산 등록', group: '기본' },
        { path: '/settings', element: <AssetSettingsPage />, label: '자산 설정', group: '기본' },
        { path: '/detail/:assetId', element: <AssetDetailPage /> },

        { path: '/facilities', element: <AssetListPage />, label: '시설물 관리', position: 'top' },
        { path: '/tools', element: <AssetListPage />, label: '공구 관리', position: 'top' },
        { path: '/general', element: <AssetListPage />, label: '일반 자산', position: 'top' },
        { path: '/consumables', element: <AssetListPage />, label: '소모품 관리', position: 'top' },
        { path: '/instruments', element: <AssetListPage />, label: '계측기 관리', position: 'top' },
        { path: '/vehicles', element: <AssetListPage />, label: '차량 관리', position: 'top' },
    ],
    requiredRoles: ['admin', 'manager']
};
