import { Component, ReactElement, ReactNode } from 'react'; import { observer } from 'mobx-react'; import classnames from 'classnames'; import { noop } from 'lodash'; interface IProps { className: string; disabled?: boolean; onClick?: () => void; type?: string; children: ReactNode; htmlForm?: string; } @observer class Button extends Component { render(): ReactElement { const { className, disabled = false, onClick = noop, type = 'button', children, htmlForm = '', } = this.props; const buttonProps = { className: classnames({ ferdium__fab: true, [`${className}`]: className, }), type, disabled, onClick, form: htmlForm, }; return ( ); } } export default Button;