31 lines
660 B
TypeScript
31 lines
660 B
TypeScript
import type { Metadata } from "next";
|
|
|
|
import { CopilotKit } from "@copilotkit/react-core";
|
|
import "./globals.css";
|
|
import "@copilotkit/react-ui/v2/styles.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<body className={"antialiased"}>
|
|
<CopilotKit
|
|
runtimeUrl="/api/copilotkit"
|
|
showDevConsole={false}
|
|
useSingleEndpoint={false}
|
|
>
|
|
{children}
|
|
</CopilotKit>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|