UNPKG

intentful

Version:

Create Custom Skills with less headache

25 lines (24 loc) 889 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlexaButton = void 0; const component_1 = require("../../component"); class AlexaButton extends component_1.APLComponent { constructor(props) { super('AlexaButton', props); } componentSpecificModel() { return { buttonText: this.props.buttonText, buttonIconName: this.props.buttonIconName, buttonIconSource: this.props.buttonIconSource, buttonIconStyle: this.props.buttonIconStyle, buttonStyle: this.props.buttonStyle, primaryAction: this.props.primaryAction, touchForward: this.props.touchForward }; } componentSpecificRequestHandlers() { return this.props.primaryAction ? this.props.primaryAction.getRequestHandlers() : []; } } exports.AlexaButton = AlexaButton;