/**
*
*
*
* A chatbot popup component for the CopilotKit framework. The component allows for a high degree
* of customization through various props and custom CSS.
*
* See [CopilotSidebar](/reference/v1/components/chat/CopilotSidebar) for a sidebar version of this component.
*
* ## Install Dependencies
*
* This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.
*
* ```shell npm2yarn \"@copilotkit/react-ui"\
* npm install @copilotkit/react-core @copilotkit/react-ui
* ```
* ## Usage
*
* ```tsx
* import { CopilotPopup } from "@copilotkit/react-ui";
* import "@copilotkit/react-ui/styles.css";
*
*
* ```
*
* ### With Observability Hooks
*
* To monitor user interactions, provide the `observabilityHooks` prop.
* **Note:** This requires a `publicApiKey` in the `` provider.
*
* ```tsx
*
* {
* console.log("Popup opened");
* },
* onChatMinimized: () => {
* console.log("Popup closed");
* },
* }}
* />
*
* ```
*
* ### Look & Feel
*
* By default, CopilotKit components do not have any styles. You can import CopilotKit's stylesheet at the root of your project:
* ```tsx title="YourRootComponent.tsx"
* ...
* import "@copilotkit/react-ui/styles.css"; // [!code highlight]
*
* export function YourRootComponent() {
* return (
*
* ...
*
* );
* }
* ```
* For more information about how to customize the styles, check out the [Customize Look & Feel](/guides/custom-look-and-feel/customize-built-in-ui-components) guide.
*/
import { CopilotModal, CopilotModalProps } from "./Modal";
export function CopilotPopup(props: CopilotModalProps) {
props = {
...props,
className: props.className
? props.className + " copilotKitPopup"
: "copilotKitPopup",
};
return {props.children};
}