/** * WordPress dependencies */ import { BaseControl } from '@safe-wordpress/components'; import { useInstanceId } from '@safe-wordpress/compose'; import { _x } from '@safe-wordpress/i18n'; /** * External dependencies */ import { css } from '@nelio/popups/css'; import type { Color } from '@nelio/popups/types'; /** * Internal dependencies */ import { ColorIndicator } from './color-indicator'; import { ColorPicker } from './color-picker'; import type { ColorControlProps } from './color-control'; export type TwoColorControlProps = { readonly label?: string; readonly background: Omit< ColorControlProps, 'label' >; readonly foreground: Omit< ColorControlProps, 'label' >; }; export const TwoColorControl = ( { label, foreground, background, }: TwoColorControlProps ): JSX.Element => { const instanceId = useInstanceId( TwoColorControl ); return ( ); }; const Label = ( { label, foreground, background, }: { label: string; foreground?: Color; background?: Color; } ): JSX.Element => { return (
{ label } { foreground && ( ) } { background && ( ) }
); }; // ====== // STYLES // ====== const ACTIONS_STYLE = css( { display: 'flex', flexDirection: 'row', gap: '1em', justifyContent: 'flex-end', marginTop: '0.5em', } );