import React from 'react' ; import { Button as ButtonBase } from 'antd' ; export interface ButtonProps { onClick : ( ) => void ; className ? : string ; label : string ; } export const Button = ( { label , onClick , ... rest } ) => ( < ButtonBase onClick = { onClick } type = "primary" ghost { ... rest } > { label } < /ButtonBase>);