UNPKG

reablocks

Version:
15 lines (13 loc) 436 B
import { DialogProps } from './Dialog'; import { default as React } from 'react'; type DialogOptions = { open?: boolean; onClose?: () => void; } | undefined; export declare const useDialog: (prop?: DialogOptions) => { isOpen: boolean; setOpen: React.Dispatch<React.SetStateAction<boolean>>; toggleOpen: () => void; Dialog: (props: Partial<DialogProps>) => import("react/jsx-runtime").JSX.Element; }; export {};