UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

25 lines 1.1 kB
import { type ReactNode } from 'react'; /** * Props for the chatbot panel shell */ export interface ChatbotPanelProps { isOpen: boolean; onClose: () => void; onStartNew: () => void; /** Conversation list passed as a node so the panel stays layout-only */ historySlot: ReactNode; /** Messages list passed as a node (allows easy swap during tests) */ messagesSlot: ReactNode; /** Input area slot (auto-resize textarea + send button) */ inputSlot: ReactNode; /** Optional error banner (string shown above the input) */ errorMessage?: string | null; className?: string; } /** * Fixed drawer-like panel anchored to the bottom-right of the screen. * Splits into optional history sidebar + main conversation area. The * panel is purely presentational — state lives in the `useChatbot` hook. */ export default function ChatbotPanel({ isOpen, onClose, onStartNew, historySlot, messagesSlot, inputSlot, errorMessage, className, }: Readonly<ChatbotPanelProps>): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=ChatbotPanel.d.ts.map