Files
adeptus-miniaturium/src/components/Auth/IfNotAuthenticated.jsx
2026-02-15 02:53:57 +01:00

9 lines
230 B
JavaScript

import { useAuth } from "@/hooks/useAuth.js";
const IfNotAuthenticated = ({ children }) => {
const { authStatus } = useAuth();
return authStatus === "unauthenticated" ? children : null;
};
export default IfNotAuthenticated;