File size: 494 Bytes
a83fcff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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<HTMLDivElement>,
onDismiss: () => void,
): void {
useOverlayLayer({
panelRef,
onDismiss,
dismissOnOutside: false,
initialFocus: ".app-wizard-close",
restoreFocus: true,
trapFocus: true,
});
}
|