import { Box, TableToolbar } from '@wix/design-system';
import React, { ReactNode } from 'react';
import { st, classes } from './ToolbarItemBox.st.css.js';
export interface ToolbarItemBoxProps {
dataHook?: string;
layout?: 'button';
expandable?: boolean;
label?: ReactNode;
removeStartPadding?: boolean;
children?: ReactNode;
}
export function ToolbarItemBox(props: ToolbarItemBoxProps) {
const { label, children, removeStartPadding, expandable, ...rest } = props;
let child = children;
if (label) {
child = {child};
}
return (
{label && (
{label}
)}
{child}
);
}