generated from Gallardo7761/miarma-template-full
9 lines
230 B
JavaScript
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;
|