runloopable / web /src /shell /useApplicationWizardOverlay.ts
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
82cdb59 verified
Raw History Blame Contribute Delete
494 Bytes
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,
});
}