antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
15 lines (14 loc) • 398 B
TypeScript
import { FC } from 'react';
import { NativeProps } from '../../utils/native-props';
export declare type Action = {
key: string | number;
text: string;
disabled?: boolean;
danger?: boolean;
primary?: boolean;
onClick?: () => void | Promise<void>;
} & NativeProps;
export declare const ModalActionButton: FC<{
action: Action;
onAction: () => void | Promise<void>;
}>;