import { memo } from 'react'; import FieldWrapper from './FieldWrapper'; import { __ } from '@wordpress/i18n'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from './DropdownInput'; import Icon from '../../utils/Icon'; interface DropdownOption { value: string; label: string; } interface DropdownFieldProps { field: { id: string; label?: string; options: DropdownOption[]; is_lock?: boolean; tooltip?: any; [key: string]: any; }; value: string; onChange: (value: string) => void; } const DropdownInput = ({ field, value, onChange } :DropdownFieldProps) => { return ( {field.label} {field.tooltip && ( )} } > ); }; export default memo(DropdownInput);