import React from 'react' import Icon from '../../atoms/icon' import { DropDownMenu, DropDownItem, } from '../../molecules/drop-down' import { StyledDropDownItemAction } from './button-group.styled' import { ButtonInGroupProps } from './button-group.types' export const DropDownItemWithButtons: React.FC = (props) => { const { variant, onClick, href, icon, label, buttons, source, ...rest } = props const onClickHandler = onClick ? (event) => onClick(event, source) : undefined return ( {buttons && buttons.length ? ( ) : ''} {icon ? : ''} {label} {buttons && buttons.length ? ( {buttons.map((button) => ( ))} ) : ''} ) } export { DropDownItemWithButtons as default, }