Skip to content

Commit c28021b

Browse files
committed
remove console.logs
1 parent c8ca26e commit c28021b

File tree

1 file changed

+11
-19
lines changed
  • typescript-sdk/apps/dojo/src/app/[integrationId]/feature/tool_based_generative_ui

1 file changed

+11
-19
lines changed

typescript-sdk/apps/dojo/src/app/[integrationId]/feature/tool_based_generative_ui/page.tsx

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,21 @@ export default function ToolBasedGenerativeUI({ params }: ToolBasedGenerativeUIP
2222
// agent lock to the relevant agent
2323
agent="tool_based_generative_ui"
2424
>
25-
<Chat />
25+
<div className="min-h-full w-full flex items-center justify-center">
26+
<Haiku />
27+
<CopilotSidebar
28+
defaultOpen={true}
29+
labels={{
30+
title: "Haiku Generator",
31+
initial: "I'm a haiku generator 👋. How can I help you?",
32+
}}
33+
clickOutsideToClose={false}
34+
/>
35+
</div>
2636
</CopilotKit>
2737
);
2838
}
2939

30-
function Chat() {
31-
const { visibleMessages } = useCopilotChat();
32-
console.log("VISIBLE MESSAGES", visibleMessages);
33-
return (
34-
<div className="min-h-full w-full flex items-center justify-center">
35-
<Haiku />
36-
<CopilotSidebar
37-
defaultOpen={true}
38-
labels={{
39-
title: "Haiku Generator",
40-
initial: "I'm a haiku generator 👋. How can I help you?",
41-
}}
42-
clickOutsideToClose={false}
43-
/>
44-
</div>
45-
);
46-
}
47-
4840
function Haiku() {
4941
const [haiku, setHaiku] = useState<{
5042
japanese: string[];

0 commit comments

Comments
 (0)