import { BaseControl } from '@wordpress/components'; import { __, sprintf } from '@wordpress/i18n'; import type { Attributes } from '../../types'; import { SimpleStringEnd } from './footers/SimpleStringEnd'; import { SimpleStringStart } from './footers/SimpleStringStart'; type FooterSelectProps = { attributes: Attributes; onClick: (slug: string) => void; }; export const FooterSelect = ({ attributes, onClick }: FooterSelectProps) => { const { footerType, ...attributesWithoutFooterType } = attributes; const { bgColor } = attributes; const types = { none: __('None', 'code-block-pro'), simpleStringEnd: __('Simple string end', 'code-block-pro'), simpleStringStart: __('Simple string start', 'code-block-pro'), }; return (