Files
copilotkit__copilotkit/examples/showcases/orca/frontend/components/chat-interface.tsx
Jordan Ritter fd34bbfbf6 style: format all example files with prettier
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.
2026-03-12 13:06:04 -07:00

21 lines
679 B
TypeScript

"use client";
import { CopilotChat } from "@copilotkit/react-ui";
import "@copilotkit/react-ui/styles.css";
import { useSharedContext } from "@/lib/shared-context";
import { instructions } from "@/lib/prompts";
export function ChatInterface() {
const { prData } = useSharedContext();
return (
<div className="flex h-full w-80 flex-col border-l bg-background">
<div className="flex items-center justify-between border-b px-4 py-4">
<h2 className="font-semibold">EnterpriseX Assistant</h2>
</div>
<CopilotChat
className="h-a py-4"
instructions={instructions.replace("{prData}", JSON.stringify(prData))}
/>
</div>
);
}