import React from "react";
import Button from "../button/Button";

export default function ButtonGroupItem(props) {
    let {
        startIcon,
        text,
        type,
        size,
        endIcon,
        shape,
        disabled,
        ariaLabel,
        hover,
        children,
        iconName,
    } = props;
    return (
        <Button
            startIcon={startIcon}
            endIcon={endIcon}
            text={text}
            type={type}
            size={size}
            shape={shape}
            disabled={disabled}
            ariaLabel={ariaLabel}
            hover={hover}
            children={children}
            iconName={iconName}
        >
            {children ? children : null}
        </Button>
    );
}