"use client"; import { useEffect } from "react"; import { useAuthStore } from "@/stores/auth-store"; export default function NotFound() { const isAuthenticated = useAuthStore((s) => s.isAuthenticated); useEffect(() => { if (!isAuthenticated) { window.location.href = "/login"; } }, [isAuthenticated]); if (!isAuthenticated) { return null; } return (

404

This page could not be found.

Go home
); }