import React from 'react'; import Loader from 'misago/components/loader'; // jshint ignore:line export default class Button extends React.Component { render() { let className = 'btn ' + this.props.className; let disabled = this.props.disabled; if (this.props.loading) { className += ' btn-loading'; disabled = true; } /* jshint ignore:start */ return ; /* jshint ignore:end */ } } Button.defaultProps = { className: "btn-default", type: "submit", loading: false, disabled: false, onClick: null };