import React from 'react'; import { NormalButton, DisableButton } from './styled'; export type Props = { appearance?: | 'default' | 'primary' | 'primary-hollow' | 'danger-hollow' | 'default-hollow' | 'dark' | 'link' | 'danger-link'; id?: string; isDisabled?: boolean; onClick?: (e: React.MouseEvent) => void; onBlur?: () => void; onFocus?: () => void; shouldFitContainer?: boolean; align?: 'left' | 'center' | 'right'; children: React.ReactNode; style?: Record; isActive?: boolean; tabIndex?: number; }; const Button: React.FC = ({ children, isDisabled, onClick, ...rest }: Props): React.ReactElement => isDisabled ? ( {children} ) : ( {children} ); Button.defaultProps = { appearance: 'default', align: 'center', shouldFitContainer: false, isDisabled: false, isActive: false, onFocus: (): void => { // do nothing }, }; export default Button;