import { ReactNode } from 'react'; import { StyledButtonIcon } from './styled'; interface IButtonIcon { icon: ReactNode; children?: ReactNode; style?: { fontSize?: string; backgroundColor?: string; color?: string; }; iconStyle?: { color?: string; size?: string; }; onClick?: () => void; } const ButtonIcon = ({ icon, children, style, iconStyle, onClick, }: IButtonIcon) => { const isHaveChildren = Boolean(children); return ( {icon} {children} ); }; export default ButtonIcon;