khronoz's picture
Autofill Prompt (#16)
7d9d30d unverified
raw
history blame
480 Bytes
import { ChangeEvent, FormEvent } from "react";
export interface SearchHandler {
query: string;
isLoading: boolean;
onInputChange?: (e: ChangeEvent<HTMLInputElement>) => void;
onSearchSubmit?: (e: FormEvent) => void;
results: SearchResult[];
searchButtonPressed?: boolean;
}
export interface SearchResult {
id: number;
file_name: string;
page_no: number;
text: string;
similarity_score: number;
// Add more properties as needed
}