diff --git a/src/components/ListAPI.tsx b/src/components/ListAPI.tsx index 90efd11..f9259a8 100644 --- a/src/components/ListAPI.tsx +++ b/src/components/ListAPI.tsx @@ -16,6 +16,22 @@ import { NavigationMenu, NavigationMenuList, } from "@/components/ui/navigation-menu"; +import { + Command, + CommandEmpty, + CommandGroup, + CommandInput, + CommandItem, + CommandList, +} from "@/components/ui/command"; +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/components/ui/popover"; +import { BrushIcon } from "lucide-react"; + +import { useToast } from "@/hooks/use-toast"; interface APITemplateDropdownProps { label: string; @@ -133,85 +149,71 @@ function APIsDropdownList({ function ToolsDropdownList() { const ctx = useContext(AppContext); if (!ctx) return
error
; + const { toast } = useToast(); + const [open, setOpen] = React.useState(false); const { chatStore, setChatStore } = ctx; return ( - - - {Tr(`Tools`)} - - - - - + + ))} + + + + + + ); } @@ -219,7 +221,8 @@ const APIListMenu: React.FC = () => { const ctx = useContext(AppContext); if (!ctx) return
error
; return ( -
+
+ {ctx.templateTools.length > 0 && } {ctx.templateAPIs.length > 0 && ( @@ -260,13 +263,6 @@ const APIListMenu: React.FC = () => { )} - {ctx.templateTools.length > 0 && ( - - - - - - )}
); };