import { useAuth } from '../../contexts/AuthContext'; const ProtectedRoute = ({ children }) => { const { isAuthenticated, isLoading } = useAuth(); if (isLoading) { return (
Please log in to access this page.