import { useEffect } from "react"; type Props = { onClose: () => void; }; const rows = [ ["1–6", "Jump to MLP … VLM in learning order"], ["← →", "Previous / next architecture (in detail view)"], ["Esc", "Close detail view or this help"], ["?", "Toggle this shortcut list"], ]; export function HelpOverlay({ onClose }: Props) { useEffect(() => { const onKey = (event: KeyboardEvent) => { if (event.key === "Escape") onClose(); }; window.addEventListener("keydown", onKey); return () => window.removeEventListener("keydown", onKey); }, [onClose]); return (