UNPKG

@progress/kendo-angular-conversational-ui

Version:

Kendo UI for Angular Conversational UI components

43 lines (42 loc) 1.22 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { SVGIcon } from "@progress/kendo-svg-icons"; import { Message } from "./message.interface"; /** * Defines the structure of a message action in the Chat interface. * These actions can be used to perform specific operations on messages. */ export interface MessageAction { /** * Unique identifier for the action. */ id: string | number; /** * Display text for the action. */ label: string; /** * Icon name for the action. */ icon?: string; /** * SVG icon object for the action. */ svgIcon?: SVGIcon; /** * Whether the action is disabled. */ disabled?: boolean; } export interface MessageActionEvent { /** * The action that was triggered. */ action: MessageAction; /** * The message associated with the action. */ message: Message; }