mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
fd34bbfbf6
Run prettier on ~1,865 files across examples/ to match the monorepo's formatting standards. These files were imported as-is from standalone repos that used different prettier configs.
13 lines
365 B
TypeScript
13 lines
365 B
TypeScript
"use client";
|
|
import { CopilotKit } from "@copilotkit/react-core";
|
|
import { useLayout } from "./contexts/LayoutContext";
|
|
|
|
export default function Wrapper({ children }: { children: React.ReactNode }) {
|
|
const { layoutState } = useLayout();
|
|
return (
|
|
<CopilotKit runtimeUrl="/api/copilotkit" agent={layoutState.agent}>
|
|
{children}
|
|
</CopilotKit>
|
|
);
|
|
}
|