import { ComponentProps, ReactNode } from 'react'; import { Button as AntButton } from 'antd'; type ButtonProps = Omit, 'danger'> & { direction?: 'rtl' | 'ltr'; status?: 'error' | 'danger' | 'success'; }; /** * API is the same as https://ant.design/components/button/#API, except for the * `danger` prop, which is ommited in favour of `status`, described below. */ declare const Button: (props: ButtonProps) => ReactNode; export default Button;