/** * SAVE: Colors */ import { default as GetClasses } from './get-classes.js'; const ColorsSave = ( props ) => { const { InnerBlocks } = wp.blockEditor; // Get the values needed from props. const { className, search } = props.attributes; // Figure out what classes should be applied to the colors. const colorsClasses = GetClasses( props ); // Set up container classes. let containerClasses = className ? className + ' cp-palette' : 'cp-palette'; // Create the search form markup (optional). let maybeSearch = ''; if ( search ) { maybeSearch = (
); } return (
{ maybeSearch }
); }; export default ColorsSave;