UNPKG

@copilotkit/react-core

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

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