import { InputClearValue, InputSeparator, TextBox, } from "@progress/kendo-react-inputs"; import FactoryRenderer from "../../../../Renderer"; export type GlobalSearchViewProps = { disabled: boolean; value: string | undefined; onSearchChange: (searchKey: string | undefined) => void; onClearSearch: () => void; onSearch: () => void; }; const GlobalSearchView = (props: GlobalSearchViewProps) => { return ( { if (e.key === "Enter" || e.code === "Enter") { props.onSearch(); } }} onChange={(e) => { props.onSearchChange(e.target.value as string); }} suffix={() => props.value ? ( <> ) : ( <> ) } prefix={() => ( <> )} /> ); }; export default GlobalSearchView;