import { NavLink } from "react-router-dom"; const NAV_ITEMS = [ { to: "/", label: "Overview", end: true }, { to: "/preferences", label: "Role Preferences" }, { to: "/oncall", label: "On-Call Schedule" }, { to: "/ledger", label: "Ledger" }, ]; export default function Sidebar({ record, open, onClose, onLogout }) { const name = record?.RSI_Handle || record?.name || "Pilot"; return ( <> {open && (