/* * Shared colour panel — the popover body behind every colour control: a grid * of named theme swatches with the full custom picker underneath. Pure * presentation; parents own the Dropdown/popover chrome. */ import { ColorPicker } from '@wordpress/components'; import { SWATCHES } from '../../swatches'; const eq = ( a, b ) => ( a || '' ).toLowerCase() === ( b || '' ).toLowerCase(); export default function ColorPanel( { value, onChange } ) { const handlePick = ( c ) => onChange( typeof c === 'string' ? c : ( c && c.hex ) || value ); return (