diff --git a/web/app/components/Sidebar.tsx b/web/app/components/Sidebar.tsx index 59313bbb..ee8d144e 100644 --- a/web/app/components/Sidebar.tsx +++ b/web/app/components/Sidebar.tsx @@ -1,5 +1,6 @@ "use client"; +import { useState } from "react"; import Link from "next/link"; import ProfileCombobox from "@/app/components/ProfileCombobox"; import History, { HistoryEntry } from "@/app/components/History"; @@ -61,6 +62,12 @@ export default function Sidebar({ handleHistoryLoad, isCustomSelection, }: SidebarProps) { + const [visibleKeys, setVisibleKeys] = useState>({}); + + const toggleKeyVisibility = (key: string) => { + setVisibleKeys((prev) => ({ ...prev, [key]: !prev[key] })); + }; + return (