import React, { useContext } from 'react';
import { Button, Tooltip } from 'antd';
import ThemeContext from '../../theme/ThemeContext';

/**
 * TODO
 */
function ControlGroupButton (props) {
    const theme = useContext(ThemeContext);

    return (
        <Tooltip title={props.tooltip} placement={props.tooltipPlacement} color={theme.tooltipBackgroundColor}>
            <Button {...props}>
            </Button>
        </Tooltip>
    );
};

export default ControlGroupButton;
