@kopexa/alert-dialog
Version: 
A modal dialog that interrupts the user with important content and expects a response.
11 lines (8 loc) • 328 B
text/typescript
import * as react from 'react';
import { ConfirmFunction } from './confirm.types.mjs';
type ConfirmContextValue = {
    confirm: ConfirmFunction;
};
declare const ConfirmInternalProvider: react.Provider<ConfirmContextValue>;
declare const useConfirm: () => ConfirmContextValue;
export { ConfirmInternalProvider, useConfirm };