import React, { useId } from 'react' import { __, sprintf } from '@wordpress/i18n' import { ImportCard } from '../common/ImportCard' import type { Importer } from './WithMigrationData' export interface ImporterSelectorProps { value: string onChange: (newValue: string) => void isLoading: boolean options: Importer[] } export const ImporterSelector: React.FC = ({ value, onChange, options, isLoading }) => { const importerId = useId() return (

{__('Select plugin', 'code-snippets')}

{isLoading &&

{__('Loading snippets…', 'code-snippets')}

}
) }