UNPKG

@kopexa/alert-dialog

Version:

A modal dialog that interrupts the user with important content and expects a response.

16 lines (13 loc) 516 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { ReactNode } from 'react'; import { ConfirmOptions } from './confirm.types.mjs'; interface ConfirmDialogState { isOpen: boolean; config: ConfirmOptions; resolver: ((value: boolean) => void) | null; } type ConfirmDialogProviderProps = { children: ReactNode; }; declare const ConfirmDialogProvider: ({ children, }: ConfirmDialogProviderProps) => react_jsx_runtime.JSX.Element; export { ConfirmDialogProvider, type ConfirmDialogState };