import React from 'react';
import TagListAction from '../TagListAction';
import Tooltip from '../../Tooltip';
import { classes } from '../TagList.st.css.js';
const ToggleMoreButton = ({ toggleMoreButton, onClick, amountOfHiddenTags, isExpanded, dataHook, size, }) => {
    const { label, tooltipContent, tooltipProps, ...props } = toggleMoreButton(amountOfHiddenTags, isExpanded);
    const button = (React.createElement(TagListAction, { size: size, skin: "standard", priority: "secondary", ...props, dataHook: dataHook, onClick: onClick }, label));
    if (tooltipContent) {
        return (React.createElement(Tooltip, { content: tooltipContent, className: classes.item, ...tooltipProps }, button));
    }
    return button;
};
ToggleMoreButton.displayName = 'ToggleMoreButton';
export default ToggleMoreButton;
//# sourceMappingURL=ToggleMoreButton.js.map