import { BaseControl } from '@wordpress/components'; import { sprintf, __ } from '@wordpress/i18n'; import { Attributes } from '../../types'; import { HeaderType } from './HeaderType'; type HeaderSelectProps = { attributes: Attributes; onClick: (slug: string) => void; }; export const HeaderSelect = ({ attributes, onClick }: HeaderSelectProps) => { const { headerType, bgColor } = attributes; const types = { '': __('None', 'code-block-pro'), headlights: __('Headlights', 'code-block-pro'), }; return (