import { Box, TableToolbar } from '@wix/design-system';
import React from 'react';
import { st, classes } from './ToolbarItemBox.st.css.js';
export function ToolbarItemBox(props) {
    const { label, children, removeStartPadding, expandable, ...rest } = props;
    let child = children;
    if (label) {
        child = React.createElement(Box, { marginLeft: 2 }, child);
    }
    return (React.createElement(TableToolbar.Item, { className: st(classes.root, {
            removeStartPadding,
            expandable,
        }), ...rest },
        label && (React.createElement(TableToolbar.Label, { dataHook: "table-toolbar-label" }, label)),
        child));
}
//# sourceMappingURL=ToolbarItemBox.js.map