feat : add front-end using shad cn

This commit is contained in:
ARJUN S THAMPI
2026-03-12 17:56:52 +05:30
parent 521a1fea79
commit ded04fca7f
34 changed files with 10304 additions and 0 deletions
@@ -0,0 +1,12 @@
import {Navigate} from "react-router-dom";
import {useAuth} from "@/context/AuthContext";
export default function ProtectedRoute({children}: any) {
const {token} = useAuth();
if (!token) {
return <Navigate to="/" />;
}
return children;
}