text: import React from 'react';
  
  export default class SimpleButton extends React.Component {
      render() {
          let cls = (this.props.icon) ? 'material-icons' : '';
  
          let style = {
              fontSize: 24,
              display: 'inline-block',
              userSelect: 'none',
              cursor: this.props.onClick ? 'pointer' : 'default',
              ...(this.props.style || {})
          };
  
          return (
              <span
                  className={cls}
                  onClick={this.props.onClick}
                  style={style}>{this.props.icon || this.props.text}</span>
          );
      }
  }
  
  
  