import React, { useContext } from 'react';
import WDSButton from '../Button';
import { SplitActionContext } from './SplitActionContext';
import { st, classes } from './SplitAction.st.css.js';
export const SplitActionButton = ({ children, className, ...rest }) => {
    const shared = useContext(SplitActionContext);
    return (React.createElement(WDSButton, { ...shared, ...rest, "data-split-action-button": true, className: st(classes.splitActionButton, className) }, children));
};
SplitActionButton.displayName = 'SplitActionButton';
//# sourceMappingURL=SplitActionButton.js.map