UNPKG

@copilotkit/react-core

Version:

<div align="center"> <a href="https://copilotkit.ai" target="_blank"> <img src="https://github.com/copilotkit/copilotkit/raw/main/assets/banner.png" alt="CopilotKit Logo"> </a>

23 lines (20 loc) 714 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { CopilotKitError, Severity } from '@copilotkit/shared'; interface UsageBannerProps { severity?: Severity; message?: string; icon?: React.ReactNode; actions?: { primary?: { label: string; onClick: () => void; }; secondary?: { label: string; onClick: () => void; }; }; } declare function UsageBanner({ severity, message, icon, actions, }: UsageBannerProps): react_jsx_runtime.JSX.Element | null; declare function renderCopilotKitUsage(error: CopilotKitError): react_jsx_runtime.JSX.Element | undefined; export { UsageBanner, renderCopilotKitUsage };