"use client"; import type { ReactNode } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; /** * Ezer Mishpati navigation shell. * * Editorial/judicial aesthetic: * - Navy header with a gold hairline rule (border-b-3) * - Parchment/cream body background (set on via globals.css) * - Hebrew RTL throughout (set on in layout.tsx) * * Nav items pick up an `aria-current="page"` and a gold underline when * the current route matches, so screen readers announce the active * section and sighted users can see where they are. */ type NavItem = { href: string; label: string; }; const NAV_ITEMS: NavItem[] = [ { href: "/", label: "בית" }, { href: "/cases/new", label: "תיק חדש" }, { href: "/training", label: "אימון סגנון" }, { href: "/feedback", label: "הערות יו״ר" }, { href: "/skills", label: "מיומנויות" }, { href: "/diagnostics", label: "אבחון" }, ]; function isActive(pathname: string, href: string): boolean { if (href === "/") return pathname === "/"; return pathname === href || pathname.startsWith(`${href}/`); } export function AppShell({ children }: { children: ReactNode }) { const pathname = usePathname(); return ( <>
עוזר משפטי ניהול תיקים
{children}
); }