import { Navigate, useLocation } from 'react-router-dom' import { useAuth } from '@/contexts/AuthContext' import type { ReactNode } from 'react' export function ProtectedRoute({ children }: { children: ReactNode }) { const { isAuthenticated, isBootstrapping } = useAuth() const location = useLocation() if (isBootstrapping) { return