antd-mobile
Version:
<div align="center">
15 lines (14 loc) • 417 B
TypeScript
import type { FC, ReactNode } from 'react';
import { NativeProps } from '../../utils/native-props';
export declare type Action = {
key: string | number;
text: ReactNode;
disabled?: boolean;
danger?: boolean;
primary?: boolean;
onClick?: () => void | Promise<void>;
} & NativeProps;
export declare const ModalActionButton: FC<{
action: Action;
onAction: () => void | Promise<void>;
}>;