const BgButtons = ({ attributes, attributesKey, setAttributes, label, items, onClick = false }) => { const setBgType = (newValue) => { if (onClick) { onClick(newValue); } else { setAttributes({ [attributesKey]: newValue }); } }; return (