import React from 'react'; import PropTypes from 'prop-types'; import './Button.scss'; import Text from '../text/Text'; import RawIcon from '../system-icons/RawIcon'; import { blurOnBubbling } from './script'; function Button({ id, className, variant, iconSrc, type, onClick, children, disabled, }) { const iconClass = (iconSrc === null) ? '' : `btn-${variant}--icon`; return ( ); } Button.defaultProps = { id: '', className: null, variant: 'surface', iconSrc: null, type: 'button', onClick: null, disabled: false, }; Button.propTypes = { id: PropTypes.string, className: PropTypes.string, variant: PropTypes.oneOf(['surface', 'primary', 'positive', 'caution', 'danger']), iconSrc: PropTypes.string, type: PropTypes.oneOf(['button', 'submit']), onClick: PropTypes.func, children: PropTypes.node.isRequired, disabled: PropTypes.bool, }; export default Button;