import { AutomationTestingProps } from '@/types'; import { Option } from '@@/form-components/PortainerSelect'; import { Select } from '@@/form-components/ReactSelect'; export function InputSearch({ value, onChange, options, placeholder, 'data-cy': dataCy, inputId, }: { value: string; onChange: (value: string) => void; options: Option[]; placeholder?: string; inputId?: string; } & AutomationTestingProps) { const selectValue = options.find((option) => option.value === value) || { value: '', label: value, }; return (