/* eslint-disable */ // @ts-nocheck import { Button, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from "../../../shared/@patternfly/react-core"; import { ArrowRightIcon, SearchIcon, TimesIcon } from "../../../shared/@patternfly/react-icons"; import { useTranslation } from "react-i18next"; type SearchInputComponentProps = { value: string; onChange: (value: string) => void; onSearch: (value: string) => void; onClear: () => void; placeholder?: string; "aria-label"?: string; }; export const SearchInputComponent = ({ value, onChange, onSearch, onClear, placeholder, "aria-label": ariaLabel, }: SearchInputComponentProps) => { const { t } = useTranslation(); return ( <> } value={value} onChange={(event: React.FormEvent) => onChange(event.currentTarget.value) } onKeyDown={(event: React.KeyboardEvent) => { if (event.key === "Enter") { event.preventDefault(); onSearch(value); } }} placeholder={placeholder} aria-label={ariaLabel} data-testid="search-input" /> {value && (