import React, { useContext } from 'react';
import { ChevronDown } from '@wix/wix-ui-icons-common';
import WDSIconButton from '../IconButton';
import { SplitActionContext } from './SplitActionContext';
import { st, classes } from './SplitAction.st.css.js';
export const SplitActionIconButton = ({ children, className, ...rest }) => {
    const shared = useContext(SplitActionContext);
    return (React.createElement(WDSIconButton, { ...shared, ...rest, "data-split-action-button": true, className: st(classes.splitActionIconButton, className), ariaLabel: rest.ariaLabel }, children || React.createElement(ChevronDown, null)));
};
SplitActionIconButton.displayName = 'SplitActionIconButton';
//# sourceMappingURL=SplitActionIconButton.js.map