mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-19 00:22:14 +03:00
cf376fb59f
* feat: add brain management button * feat: add brains list * feat: add brain search bar * feat: sort brain list by name * refactor: update brains management page structure * feat(BrainManagement): add new brain button * feat: update import links
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>
|
|
);
|
|
};
|