/// import type { SuggestionsProps } from '../Suggestion'; /** * 顶部区域配置 */ export interface HeaderConfig { /** * 顶部占位图标/内容 * @type { React.ReactNode } * @default undefined */ avatar?: React.ReactNode; /** * 顶部占位标题 * @type { React.ReactNode } * @default '欢迎使用AI助手' */ title?: React.ReactNode; /** * 顶部占位描述 * @type { React.ReactNode } * @default '选择下方场景快速开始对话' */ description?: React.ReactNode; } export type ContentConfig = Partial<{ /** * 标题 * @type { string } * @default undefined */ title: string; /** * 快捷指令列表 * @type { SuggestionItemProps[] } * @default [] */ suggestion: Pick; /** * 变体样式 */ card?: boolean; }>; export interface WelcomeProps { /** * 顶部区域配置 * @type { HeaderConfig } * @default undefined */ header?: HeaderConfig; /** * 快捷指令配置 * @type { ContentConfig } * @default undefined */ content?: ContentConfig; /** * 底部区域配置 * @type { React.ReactNode } * @default '内容由AI生成,仅供参考' */ footer?: React.ReactNode; /** * 自定义内容 * @type { React.ReactNode } * @default undefined */ children?: React.ReactNode; /** * 自定义类名 * @type { string } * @default undefined */ className?: string; /** * 自定义样式 * @type { React.CSSProperties } * @default undefined */ style?: React.CSSProperties; }