import React, {Component} from 'react'; import './ButtonField.scss'; import './common.scss'; const classNames = require('classnames'); class ButtonField extends Component { constructor(props) { super(props); } render() { const handler = () => { if (typeof this.props.onClick === "function") { this.props.onClick(); } }; let buttonClassnames = { "button-bordered": this.props.bordered, }; if (this.props.variant) { buttonClassnames[`button-variant-${this.props.variant}`] = true; } let buttonStyle = {}; if (this.props.color) { buttonStyle["backgroundColor"] = this.props.color; } if (this.props.border) { buttonStyle["borderColor"] = this.props.border; } return (
); } } export default ButtonField;