import { useId } from "react"; import type { PacketRead } from "../api/types"; import { Sheet } from "../components/Sheet"; import { openPrint, printRows } from "./closeUtil"; /** The print menu: one row per print kind. A row closes the sheet and opens the print dialog on the stamped copy. */ export function PrintMenu({ p, sub, onClose }: { p: PacketRead; sub: string; onClose: () => void }) { const base = useId(); const rows = printRows(p); return (
{rows.map((r) => ( ))}
Every printed page is stamped with who printed it and when, plus "verify revision before use". Printing is recorded.
); }