import { Routes, Route } from 'react-router-dom';

// 관리자 페이지
import AdminLogin from '@/pages/pc/admin/login/Login';
import AdminDashboard from '@/pages/pc/admin/dashboard/Dashboard';
import AdminMembers from '@/pages/pc/admin/members/Members';
import AdminMemberEdit from '@/pages/pc/admin/members/MemberEdit';
import AdminAlbums from '@/pages/pc/admin/albums/Albums';
import AdminAlbumForm from '@/pages/pc/admin/albums/AlbumForm';
import AdminAlbumPhotos from '@/pages/pc/admin/albums/AlbumPhotos';
import AdminSchedules from '@/pages/pc/admin/schedules/Schedules';
import AdminScheduleForm from '@/pages/pc/admin/schedules/ScheduleForm';
import AdminScheduleFormPage from '@/pages/pc/admin/schedules/form';
import AdminYouTubeEditForm from '@/pages/pc/admin/schedules/edit/YouTubeEditForm';
import AdminScheduleCategory from '@/pages/pc/admin/schedules/ScheduleCategory';
import AdminScheduleDict from '@/pages/pc/admin/schedules/ScheduleDict';
import AdminScheduleBots from '@/pages/pc/admin/schedules/ScheduleBots';
import AdminNotFound from '@/pages/pc/admin/common/NotFound';

/**
 * PC 관리자 라우트
 */
export default function AdminRoutes() {
  return (
    <Routes>
      <Route path="/admin" element={<AdminLogin />} />
      <Route path="/admin/dashboard" element={<AdminDashboard />} />
      <Route path="/admin/members" element={<AdminMembers />} />
      <Route path="/admin/members/:name/edit" element={<AdminMemberEdit />} />
      <Route path="/admin/albums" element={<AdminAlbums />} />
      <Route path="/admin/albums/new" element={<AdminAlbumForm />} />
      <Route path="/admin/albums/:id/edit" element={<AdminAlbumForm />} />
      <Route path="/admin/albums/:albumId/photos" element={<AdminAlbumPhotos />} />
      <Route path="/admin/schedule" element={<AdminSchedules />} />
      <Route path="/admin/schedule/new" element={<AdminScheduleFormPage />} />
      <Route path="/admin/schedule/new-legacy" element={<AdminScheduleForm />} />
      <Route path="/admin/schedule/:id/edit" element={<AdminScheduleForm />} />
      <Route path="/admin/schedule/:id/edit/youtube" element={<AdminYouTubeEditForm />} />
      <Route path="/admin/schedule/categories" element={<AdminScheduleCategory />} />
      <Route path="/admin/schedule/dict" element={<AdminScheduleDict />} />
      <Route path="/admin/schedule/bots" element={<AdminScheduleBots />} />
      <Route path="/admin/*" element={<AdminNotFound />} />
    </Routes>
  );
}
