@ant-design/pro-chat
Version:
a solution for ai chat
47 lines (46 loc) • 1.04 kB
TypeScript
/// <reference types="react" />
import { ActionIconGroupItems, type ActionIconGroupProps } from "../ActionIconGroup";
/**
* ActionsBar组件的属性类型定义
*/
export interface ActionsProps {
actions?: Array<ActionIconGroupItems['key']>;
moreActions?: Array<ActionIconGroupItems['key']>;
}
export interface ActionsBarProps extends ActionIconGroupProps {
/**
* 文本内容
*/
text?: {
/**
* 复制文本
*/
copy?: string;
/**
* 删除文本
*/
delete?: string;
/**
* 编辑文本
*/
edit?: string;
/**
* 重新生成文本
*/
regenerate?: string;
};
/**
* 内容
*/
content?: React.ReactNode | undefined;
/**
* 操作栏属性
*/
actionsProps?: ActionsProps;
}
/**
* ActionsBar 组件
* 用于渲染操作按钮组。
*/
declare const ActionsBar: import("react").NamedExoticComponent<ActionsBarProps>;
export default ActionsBar;