You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
351 B

declare interface InitialStateType {
isActive: boolean;
proceed: (value: unknown) => void;
cancel: (value: unknown) => void;
}
declare interface ConfirmLeaveReturnType extends InitialStateType {
onConfirm: () => Promise<boolean>;
resetConfirmation: () => void;
}
declare const useConfirm: () => ConfirmLeaveReturnType;
export default useConfirm;