UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

31 lines (30 loc) 847 B
import { RouteNames } from '../../common/enums'; import { IconType } from '../../common/types'; import Message from '../base/Message'; export type Title = { text: string; color: string; }; export type Icon = { height: string | number; width: string | number; base64: string; color: string; }; export type Indicator = { name: string; title: any; url: string; backgroundColor: string; icon?: IconType; navigateToRoute?: RouteNames; previousUrl?: string; }; export default class HorizontalMenu extends Message { categoryTitle: Title; categoryType: string; categoryIcon: Icon; categoryBackgroundColor: string; indicators: Indicator[]; constructor(categoryTitle: Title, categoryType: string, categoryIcon: Icon, categoryBackgroundColor: string, ...indicators: Indicator[]); }