/**
* 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 (