jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
15 lines (14 loc) • 725 B
TypeScript
import React from 'react';
import type { AIChatBoxRendererProps, IChatItem } from './types';
export declare const ChatItemView: React.MemoExoticComponent<({ item, isLast, className, chatAskConfig, chatAnswerConfig, emitEventProps: { render, data }, renderAnswerToolbar }: {
item: IChatItem;
isLast: boolean;
className?: string;
chatAskConfig: AIChatBoxRendererProps["chatAskConfig"];
chatAnswerConfig: AIChatBoxRendererProps["chatAnswerConfig"];
emitEventProps: Pick<AIChatBoxRendererProps, "data" | "onEvent" | "dispatchEvent" | "render">;
/**
* 单条聊天记录的操作按钮
*/
renderAnswerToolbar: (item: IChatItem, isLast: boolean) => JSX.Element | null;
}) => JSX.Element>;