From db05eeacb78d449d4696555f10cda4365dad6aeb Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 21 Mar 2025 09:50:45 -0700 Subject: [PATCH] highlights --- .../mainInput/Lump/TopInputToolbar.tsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gui/src/components/mainInput/Lump/TopInputToolbar.tsx b/gui/src/components/mainInput/Lump/TopInputToolbar.tsx index 212cf0920..b6a6633fc 100644 --- a/gui/src/components/mainInput/Lump/TopInputToolbar.tsx +++ b/gui/src/components/mainInput/Lump/TopInputToolbar.tsx @@ -8,16 +8,23 @@ import { import AssistantSelect from "../../modelSelection/platform/AssistantSelect"; import HoverItem from "../InputToolbar/HoverItem"; -function TopToolbarIcon(props: { +interface TopToolbarIconProps { tooltip: string; icon: React.ComponentType; itemCount?: number; onClick: () => void; -}) { + isSelected?: boolean; +} + +function TopToolbarIcon(props: TopToolbarIconProps) { return (
- +
); @@ -27,6 +34,7 @@ interface TopInputProps { selectedSection: string | null; setSelectedSection: (value: string | null) => void; } + export function TopInputToolbar(props: TopInputProps) { return (
@@ -35,6 +43,7 @@ export function TopInputToolbar(props: TopInputProps) { props.setSelectedSection( props.selectedSection === "models" ? null : "models", @@ -44,6 +53,7 @@ export function TopInputToolbar(props: TopInputProps) { props.setSelectedSection( props.selectedSection === "rules" ? null : "rules", @@ -53,6 +63,7 @@ export function TopInputToolbar(props: TopInputProps) { props.setSelectedSection( props.selectedSection === "docs" ? null : "docs", @@ -62,6 +73,7 @@ export function TopInputToolbar(props: TopInputProps) { props.setSelectedSection( props.selectedSection === "prompts" ? null : "prompts", @@ -71,6 +83,7 @@ export function TopInputToolbar(props: TopInputProps) { props.setSelectedSection( props.selectedSection === "context" ? null : "context",