import { Routes, Route } from 'react-router-dom';
import DashboardPage from './pages/DashboardPage';
import DummyDashboardPage from './pages/DummyDashboardPage';
import DetailPage from './pages/DetailPage';
import AdminPage from './pages/AdminPage';
import NotFoundPage from './pages/NotFoundPage';

export function AppRouter() {
  return (
    <Routes>
      {/* 좌측 모니터: 업무 목록 대시보드 */}
      <Route path="/" element={<DashboardPage />} />

      {/* 참고 이미지 느낌 더미 메인 (상단바 동일 · 정적 데이터) */}
      <Route path="/dummy" element={<DummyDashboardPage />} />

      {/* 우측 모니터: 업무 상세 패널 */}
      <Route path="/detail" element={<DetailPage />} />
      <Route path="/detail/:taskId" element={<DetailPage />} />

      {/* 관리자 전용 */}
      <Route path="/admin" element={<AdminPage />} />

      <Route path="*" element={<NotFoundPage />} />
    </Routes>
  );
}
