import type { BaseSyntheticEvent, FormEventHandler } from "react"; // Wraps a dialog form's submit handler so its submit event can't reach a form // higher up the React tree. // // Every "quick add" dialog (new gear item, new gear set, new dive site, new // trip) is rendered *from inside the dive form* - the pickers that open them // live in its fields. Base UI portals `DialogContent` out to `document.body`, so // there are no nested `