import { useAuth } from "../contexts/AuthContext"; import { RewriteLink } from "./RewriteLink"; interface NavLink { label: string; href: string; requiresAuth?: boolean; external?: boolean; } const NAV_LINKS: NavLink[] = [ { label: "Listen", href: "/listen" }, { label: "Directives", href: "/directives", requiresAuth: true }, { label: "Contracts", href: "/contracts", requiresAuth: true }, { label: "Board", href: "/workflow", requiresAuth: true }, { label: "Mesh", href: "/mesh", requiresAuth: true }, { label: "History", href: "/history", requiresAuth: true }, ]; export function NavStrip() { const { isAuthenticated, isAuthConfigured, signOut, user } = useAuth(); const handleSignOut = async () => { await signOut(); window.location.href = "/login"; }; // Check if user has access (authenticated or auth not configured) const hasAccess = isAuthenticated || !isAuthConfigured; return ( ); }