import { Navigate, createBrowserRouter } from "react-router-dom"; import AppLayout from "../components/layout/AppLayout"; import AuditLogsPage from "../features/audit/AuditLogsPage"; import AuthCallbackPage from "../features/auth/AuthCallbackPage"; import AuthGuard from "../features/auth/AuthGuard"; import LoginPage from "../features/auth/LoginPage"; import ClientConsentsPage from "../features/clients/ClientConsentsPage"; import ClientDetailsPage from "../features/clients/ClientDetailsPage"; import ClientGeneralPage from "../features/clients/ClientGeneralPage"; import ClientsPage from "../features/clients/ClientsPage"; import ProfilePage from "../features/profile/ProfilePage"; export const router = createBrowserRouter( [ { path: "/login", element: , }, { path: "/auth/callback", element: , }, { path: "/", element: , children: [ { element: , children: [ { index: true, element: }, { path: "clients", element: }, { path: "clients/new", element: }, { path: "clients/:id", element: }, { path: "clients/:id/consents", element: }, { path: "clients/:id/settings", element: }, { path: "audit-logs", element: }, { path: "profile", element: }, ], }, ], }, ], // React Router v7 플래그 사전 적용 (현재 타입 정의에 없어 any 캐스팅) { future: { v7_startTransition: true, }, } as unknown as Parameters[1], );