import type { RefObject } from "react"; import { useOverlayLayer } from "../customer-grid/OverlaySurface"; /** The Application wizard's modal interaction contract, kept out of the shell frame itself. */ export function useApplicationWizardOverlay( panelRef: RefObject, onDismiss: () => void, ): void { useOverlayLayer({ panelRef, onDismiss, dismissOnOutside: false, initialFocus: ".app-wizard-close", restoreFocus: true, trapFocus: true, }); }