/** * Color card — label, swatch + hex + reset-to-default, and a description, * matching the settings-panel design. The swatch opens a WP ColorPicker * popover. */ import { Dropdown, Button, ColorPicker, Tooltip } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { Undo2 } from '../icons'; interface ColorCardProps { label: string; description?: string; value: string; defaultValue: string; onChange: ( value: string ) => void; } export default function ColorCard( { label, description, value, defaultValue, onChange, }: ColorCardProps ) { const isDefault = ! defaultValue || value === defaultValue; return (
{ description }
) }