Initial commit

This commit is contained in:
2026-09-22 16:27:53 +02:00
commit 9b29dc8253
70 changed files with 14726 additions and 0 deletions
@@ -0,0 +1,10 @@
import { Navigate, Outlet } from 'react-router-dom';
import { useAuth } from '../auth/AuthContext';
import { Spinner } from './Spinner';
export function ProtectedRoute() {
const { user, loading } = useAuth();
if (loading) return <Spinner label="Checking your credentials…" />;
if (!user) return <Navigate to="/login" replace />;
return <Outlet />;
}