analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
29 lines • 1.33 kB
TypeScript
import type { ChatbotApiClient, ChatbotCurrentContext, ChatbotUser } from '../types/chatbot';
/**
* Props for the root Chatbot component
*/
export interface ChatbotProps {
/** API client that wraps REST calls — produced by the host app */
apiClient: ChatbotApiClient;
/** Authenticated user (used only for UI decoration today) */
user: ChatbotUser;
/** Optional context sent with every outgoing message */
currentContext?: ChatbotCurrentContext;
/** Extra tailwind classes on the FAB */
fabClassName?: string;
/** Extra tailwind classes on the panel */
panelClassName?: string;
}
/**
* Analytica student chatbot — floating assistant available in the
* authenticated area. Composes the Fab + Panel and owns no state of its
* own: the `useChatbot` hook (bound to the provided `apiClient`) keeps
* everything in one place.
*
* Host apps should render this inside the layout so the FAB is reachable
* from every page. `currentContext` is a hint (activityId, questionId,
* lessonId) produced by the host to enrich the AI prompt — it flows
* untouched to the backend.
*/
export default function Chatbot({ apiClient, user, currentContext, fabClassName, panelClassName, }: Readonly<ChatbotProps>): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Chatbot.d.ts.map