initial commit, boilerplate stuff

This commit is contained in:
khannurien
2026-03-15 17:15:46 +00:00
commit 6207a7549f
52 changed files with 4400 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { Navigate } from "react-router";
import { useAuth } from "../hooks/useAuth.ts";
export function RestrictedGuest({ children }: { children: React.ReactNode }) {
const { user } = useAuth();
return user ? <Navigate to="/" /> : <>{children}</>;
}