import React, {ChangeEvent} from "react"; import {LucideIcon} from "lucide-react"; import {SelectBoxProps} from "@/components/form/SelectBox"; import IconButton from "@/components/ui/IconButton"; interface SearchInputWithSelectProps { selectValue: string; setSelectValue: (value: string) => void; selectOptions: SelectBoxProps[]; inputValue: string; setInputValue: (value: string) => void; inputPlaceholder?: string; searchIcon: LucideIcon; onSearch: () => void; onKeyDown?: (e: React.KeyboardEvent) => void; } export default function SearchInputWithSelect( { selectValue, setSelectValue, selectOptions, inputValue, setInputValue, inputPlaceholder, searchIcon, onSearch, onKeyDown }: SearchInputWithSelectProps) { return (
) => setInputValue(e.target.value)} placeholder={inputPlaceholder} className="input-base pr-12" onKeyDown={onKeyDown} />
); }