Skip to content

Commit d9964c5

Browse files
committed
feat: uses the search bar component in the header
This is only a temporary implementation, requires options aka the search terms to be populated and an implementation for the `onSelect()` function which should update a global state for the selected edam term. Requires implementation of a global state machine before real usage.
1 parent ee480cd commit d9964c5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/app-header.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Link } from "lucide-react";
44
import GitHub from "@/assets/svg/github";
55
import { EdamVersionSelector } from "@/components/edam-version-selector";
66
import { EdamConceptSelector } from "@/components/edam-concept-selector";
7+
import { SearchBar } from "@/components/search-bar";
78

89
export function AppHeader() {
910
return (
@@ -40,6 +41,14 @@ export function AppHeader() {
4041
<EdamVersionSelector />
4142
<EdamConceptSelector />
4243
</div>
44+
<div className="place-content-center">
45+
{/* TODO: replace the `onSelect` with a global state handling function */}
46+
<SearchBar
47+
options={[]}
48+
placeholder="Search EDAM term"
49+
onSelect={(option) => console.log("Selected: ", option)}
50+
/>
51+
</div>
4352
<div className="ml-auto content-center">
4453
<ThemeToggle />
4554
</div>

0 commit comments

Comments
 (0)