UNPKG

@teamix/pro-action

Version:

action组件

11 lines (10 loc) 492 B
/// <reference types="react" /> import { IPopConfirmProps } from '@teamix/pop-confirm'; import { DialogAction } from './dialog'; export declare type PopConfirmAction = DialogAction & Omit<IPopConfirmProps, 'type' | 'trigger'> & { popType?: IPopConfirmProps['type']; }; export declare function usePopConfirmAction(action: PopConfirmAction, context?: any): { [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>; }; export default usePopConfirmAction;