@glodon-aiot/react-components
Version:
aiot react components
17 lines (16 loc) • 531 B
TypeScript
import React, { FC, ReactNode } from 'react';
import { ButtonType } from 'antd/es/button';
export interface ButtonConfirm {
text: string;
}
export interface ConfirmableButtonProps {
name: string;
children?: ReactNode;
confirm?: boolean | ButtonConfirm;
type?: ButtonType;
style?: React.CSSProperties;
className?: string;
onConfirm?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | undefined) => void;
}
declare const ConfirmableButton: FC<ConfirmableButtonProps>;
export default ConfirmableButton;