feat: add showSearch toggle (#480)
This commit is contained in:
@@ -4,7 +4,8 @@ import styles from "./Navigation.module.css";
|
||||
|
||||
import IconOverview from "@/components/Icons/Overview";
|
||||
import IconQuestion from "@/components/Icons/Question";
|
||||
import { getLabel } from "@/lib/data";
|
||||
import IconSearch from "@/components/Icons/Search";
|
||||
import { getLabel, getToggle } from "@/lib/data";
|
||||
|
||||
export function Navigation() {
|
||||
return (
|
||||
@@ -22,14 +23,14 @@ export function Navigation() {
|
||||
<span className={styles.label}>{getLabel("pageOverview")}</span>
|
||||
</Link>
|
||||
</li>
|
||||
{/*
|
||||
<li className={styles.item}>
|
||||
<Link href="/overview">
|
||||
<IconSearch className={styles.icon} />
|
||||
<span className={styles.label}>{getLabel("pageSearch")}</span>
|
||||
</Link>
|
||||
</li>
|
||||
*/}
|
||||
{getToggle("showSearch") && (
|
||||
<li className={styles.item}>
|
||||
<Link href="/overview">
|
||||
<IconSearch className={styles.icon} />
|
||||
<span className={styles.label}>{getLabel("pageSearch")}</span>
|
||||
</Link>
|
||||
</li>
|
||||
)}
|
||||
</ul>
|
||||
</nav>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user