import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { ButtonProps } from './types'
// import { ConfigContext } from '../config/index';
import Icon from '../icon';


const Button: React.FC<ButtonProps> = (props) => {

  const { className } = props;

  // const { getPrefixCls } = useContext(ConfigContext);

  const prefixCls = 'ouio-btn';
  const classes = classNames(
    prefixCls,
    className,

  );

  return (
    <button className={classes}>
      <Icon type="loading" />
      {props.children}
    </button>
  );
};

Button.propTypes = {

};



export default Button;