import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import styles from './button.css';
const ButtonComponent = ({
    className,
    disabled,
    iconClassName,
    iconSrc,
    iconWidth,
    iconHeight,
    onClick,
    children,
    ...props
}) => {
    if (disabled) {
        onClick = function () {};
    }
    const icon = iconSrc && (
        
    );
    return (
        
            {icon}
            {children}
        
    );
};
ButtonComponent.propTypes = {
    children: PropTypes.node,
    className: PropTypes.string,
    disabled: PropTypes.bool,
    iconClassName: PropTypes.string,
    iconSrc: PropTypes.string,
    iconHeight: PropTypes.string,
    iconWidth: PropTypes.string,
    onClick: PropTypes.func
};
export default ButtonComponent;