From 49e54bc64c8fc0eeb9b1dc3ebef096f842f9aebb Mon Sep 17 00:00:00 2001 From: bracesproul Date: Mon, 3 Mar 2025 12:51:21 -0800 Subject: [PATCH] add title & logo --- src/components/icons/langgraph.tsx | 18 ++++++++++++++++++ src/components/thread/index.tsx | 28 ++++++++++++++++++++-------- 2 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 src/components/icons/langgraph.tsx diff --git a/src/components/icons/langgraph.tsx b/src/components/icons/langgraph.tsx new file mode 100644 index 0000000..c23aaeb --- /dev/null +++ b/src/components/icons/langgraph.tsx @@ -0,0 +1,18 @@ +export function LangGraphLogoSVG({ width = 20, height = 20 }) { + return ( + + + + ); +} diff --git a/src/components/thread/index.tsx b/src/components/thread/index.tsx index 761073f..c71b9f0 100644 --- a/src/components/thread/index.tsx +++ b/src/components/thread/index.tsx @@ -12,6 +12,7 @@ import { DO_NOT_RENDER_ID_PREFIX, ensureToolCallsHaveResponses, } from "@/lib/ensure-tool-responses"; +import { LangGraphLogoSVG } from "../icons/langgraph"; // const dummyMessages = [ // { type: "human", content: "Hi! What can you do?" }, @@ -30,6 +31,15 @@ import { // }, // ]; +function Title({ className }: { className?: string }) { + return ( +
+ +

LangGraph Chat

+
+ ); +} + export function Thread() { const [input, setInput] = useState(""); const [firstTokenReceived, setFirstTokenReceived] = useState(false); @@ -89,14 +99,16 @@ export function Thread() { )} >
-

- Chat -

+ {!chatStarted && ( +
+ + </div> + )} + {chatStarted && ( + <div className="hidden md:flex absolute top-4 right-4"> + <Title /> + </div> + )} <div className={cn(