UNPKG

@wordpress/block-editor

Version:
29 lines (26 loc) 701 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { createElement } from "@wordpress/element"; /** * Internal dependencies */ import PanelColorGradientSettings from '../colors-gradients/panel-color-gradient-settings'; const PanelColorSettings = ({ colorSettings, ...props }) => { const settings = colorSettings.map(({ value, onChange, ...otherSettings }) => ({ ...otherSettings, colorValue: value, onColorChange: onChange })); return createElement(PanelColorGradientSettings, _extends({ settings: settings, gradients: [], disableCustomGradients: true }, props)); }; export default PanelColorSettings; //# sourceMappingURL=index.js.map