import { Component } from 'react'; import { observer, inject } from 'mobx-react'; import Loader from 'react-loader'; import classnames from 'classnames'; import { FerdiStores } from '../../stores.types'; type Props = { className: string; label: string; disabled: boolean; onClick: () => void; type: 'button' | 'submit' | 'reset'; buttonType: string; loaded: boolean; htmlForm: string; stores: FerdiStores; }; @inject('stores') @observer class Button extends Component { static defaultProps = { className: null, disabled: false, onClick: () => {}, type: 'button', buttonType: '', loaded: true, htmlForm: '', }; render() { const { label, className, disabled, onClick, type, buttonType, loaded, htmlForm, } = this.props; return ( ); } } export default Button;