Download web/src/shell/useApplicationWizardOverlay.ts from fsanyoto/loopable: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/spaces/fsanyoto/loopable/resolve/3dbbea877ddd4ebfd5e381604dffdf0ef3d80c83/web/src/shell/useApplicationWizardOverlay.ts
- Command line
-
hf download hf://spaces/fsanyoto/loopable@3dbbea877ddd4ebfd5e381604dffdf0ef3d80c83/web/src/shell/useApplicationWizardOverlay.ts
-
curl -L -o useApplicationWizardOverlay.ts https://huggingface.co/spaces/fsanyoto/loopable/resolve/3dbbea877ddd4ebfd5e381604dffdf0ef3d80c83/web/src/shell/useApplicationWizardOverlay.ts
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, | |
| }); | |
| } | |