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