prodap-chatbot-domain
Version:
Classes utilizadas na resposta de todas as Intents do Assistente Virtual
23 lines (22 loc) • 610 B
TypeScript
import { TextType } from '../../common/types';
import FormAbstract, { FormAbstractProps, Option } from './FormAbstract';
export type SwitchValue = Option & TextType & {
selected: boolean;
};
export type SwitchTrackColor = {
false?: string;
true?: string;
};
export type SwitchList = TextType & {
thumbColor?: string;
trackColor?: SwitchTrackColor;
value1: SwitchValue;
value2: SwitchValue;
};
export type SwitchProps = FormAbstractProps & {
list: SwitchList[];
};
export default class Switch extends FormAbstract {
list: SwitchList[];
constructor(props: SwitchProps);
}