UNPKG

react-hook-popup

Version:

Easily manage popups like alerts and modals in React with a single hook

9 lines (8 loc) 258 B
import React from 'react'; import './confirm.css'; export interface ConfirmProps { confirm: () => void; cancel: () => void; children?: React.ReactNode; } export declare const Confirm: ({ confirm, cancel, children }: ConfirmProps) => JSX.Element;