mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-19 17:01:41 +03:00
25 lines
537 B
TypeScript
25 lines
537 B
TypeScript
|
import Field from "@/lib/components/ui/Field";
|
||
|
|
||
|
type BrainSearchBarProps = {
|
||
|
searchQuery: string;
|
||
|
setSearchQuery: (searchQuery: string) => void;
|
||
|
};
|
||
|
|
||
|
export const BrainSearchBar = ({
|
||
|
searchQuery,
|
||
|
setSearchQuery,
|
||
|
}: BrainSearchBarProps): JSX.Element => {
|
||
|
return (
|
||
|
<div className="m-2">
|
||
|
<Field
|
||
|
name="brainsearch"
|
||
|
placeholder="Search for a brain"
|
||
|
autoFocus
|
||
|
autoComplete="off"
|
||
|
value={searchQuery}
|
||
|
onChange={(e) => setSearchQuery(e.target.value)}
|
||
|
/>
|
||
|
</div>
|
||
|
);
|
||
|
};
|