import React from 'react';
import './index.less';

function GButton(props) {
  const { children, className = '', theme = 'theme', size = 'basic', disabled, radius, width, onClick } = props;
  return (
    <div
      style={{ width: width || '' }}
      className={`button ${className} ${theme} ${size} ${disabled ? 'disabled' : ''}  ${radius ? 'radius' : ''}`}
      onClick={e => onClick && onClick(e)}
    >
      {children}
    </div>
  );
}
GButton.propTypes = {};
export default GButton;
export const Button = GButton;