@sanity/default-layout
Version:
The default layout components for Sanity
12 lines • 442 B
TypeScript
/**
* This hook binds a global shortcut combination, as well as the ESC key, to open / close callbacks.
*
* It will prevent the ESC key from firing `onClose` callbacks if it's not the top most layer
* (i.e. if a nested dialog is mounted).
*/
export declare function useSearchHotkeys({ open, onClose, onOpen, }: {
open: boolean;
onClose: () => void;
onOpen: () => void;
}): void;
//# sourceMappingURL=useSearchHotkeys.d.ts.map