import React from 'react' import Box from '../../atoms/box/box' import Icon from '../../atoms/icon' import { StyledSingleButton } from './button-group.styled' import { ButtonInGroupProps } from './button-group.types' export const SingleButtonInGroup: React.FC = (props) => { const { icon, label, buttons, source, onClick, ...buttonProps } = props const onClickHandler = onClick ? (event) => onClick(event, source) : undefined return ( {icon ? ( ) : ''} {label} {buttons && buttons.length && label ? ( ) : ''} ) } export { SingleButtonInGroup as default, }