UNPKG

intentful

Version:

Create Custom Skills with less headache

23 lines (22 loc) 784 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlexaSwitch = void 0; const helpers_1 = require("../../../interfaces/helpers"); const component_1 = require("../../component"); class AlexaSwitch extends component_1.APLComponent { constructor(props) { super('AlexaSwitch', props); } componentSpecificModel() { return { activeColor: this.props.activeColor, primaryAction: this.props.primaryAction, switchHeight: this.props.switchHeight, switchWidth: this.props.switchWidth }; } componentSpecificRequestHandlers() { return [...(0, helpers_1.convertCommandListToRequestHandlers)([this.props.primaryAction])]; } } exports.AlexaSwitch = AlexaSwitch;