mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
25 lines
611 B
TypeScript
25 lines
611 B
TypeScript
"use client";
|
|
|
|
import { ExampleLayout } from "@/components/example-layout";
|
|
import { ExampleCanvas } from "@/components/example-canvas";
|
|
import { useGenerativeUIExamples, useExampleSuggestions } from "@/hooks";
|
|
|
|
import { CopilotChat } from "@copilotkit/react-core/v2";
|
|
|
|
export default function HomePage() {
|
|
useGenerativeUIExamples();
|
|
useExampleSuggestions();
|
|
|
|
return (
|
|
<ExampleLayout
|
|
chatContent={
|
|
<CopilotChat
|
|
attachments={{ enabled: true }}
|
|
input={{ disclaimer: () => null, className: "pb-6" }}
|
|
/>
|
|
}
|
|
appContent={<ExampleCanvas />}
|
|
/>
|
|
);
|
|
}
|