import { forwardRef } from 'react'; import './Button.scss'; import '../../assets/styles/_colors.scss'; import Icon from '../Icon'; import { ButtonProps } from './types'; import classNames from 'classnames'; const Button = forwardRef( ( { variant = 'primary', backgroundColor, size = 'small', onClick, label, disabled = false, children = null, type = 'button', className = '', style = {}, iconName, iconPosition = 'left', ...props }: ButtonProps, ref ) => { const renderIcon = () => iconName && (
); return ( ); } ); export default Button;