UNPKG

@easykit/design

Version:

Easy kit design components

15 lines (14 loc) 387 B
import { ReactNode } from 'react'; export interface ConfirmProps { title: ReactNode; description: ReactNode; cancelText?: string; okText?: string; onOk?: () => boolean | void | Promise<boolean | void>; onCancel?: () => void; open?: boolean; confirmLoading?: boolean; } export declare const useAlert: () => { confirm: (props: ConfirmProps) => void; };