map of names
This commit is contained in:
parent
09ee7cc8bd
commit
b7718153bb
2 changed files with 11 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Bars2Icon } from "@heroicons/react/24/outline";
|
||||
import DisclosureComponent from "../DisclosureComponent";
|
||||
import { nodeColors, nodeIcons, toFirstUpperCase } from "../../../../utils";
|
||||
import { nodeColors, nodeIcons, nodeNames, toFirstUpperCase } from "../../../../utils";
|
||||
import { useEffect, useState } from "react";
|
||||
import { getAll } from "../../../../controllers/NodesServices";
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ export default function ExtraSidebar() {
|
|||
{Object.keys(data).map((d, i) => (
|
||||
<DisclosureComponent
|
||||
key={i}
|
||||
button={{ title: toFirstUpperCase(d), Icon: nodeIcons[d] }}
|
||||
button={{ title: nodeNames[d], Icon: nodeIcons[d] }}
|
||||
>
|
||||
<div className="p-2 flex flex-col gap-2">
|
||||
{Object.keys(data[d]).map((t, k) => (
|
||||
|
|
|
|||
|
|
@ -96,6 +96,15 @@ export function classNames(...classes) {
|
|||
memories: "#FF9135",
|
||||
}
|
||||
|
||||
export const nodeNames = {
|
||||
prompts: "Prompts",
|
||||
llms: "LLMs",
|
||||
chains: "Chains",
|
||||
agents: "Agents",
|
||||
tools: "Tools",
|
||||
memories: "Memories",
|
||||
}
|
||||
|
||||
|
||||
export const nodeIcons = {
|
||||
agents: RocketLaunchIcon,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue