intentful
Version:
Create Custom Skills with less headache
31 lines (30 loc) • 1.43 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlexaHeader = void 0;
const component_1 = require("../../component");
class AlexaHeader extends component_1.APLComponent {
constructor(props) {
super('AlexaHeader', props);
}
componentSpecificModel() {
return {
headerAttributionImage: this.props.headerAttributionImage,
headerAttributionOpacity: this.props.headerAttributionOpacity,
headerAttributionPrimacy: this.props.headerAttributionPrimacy,
headerAttributionText: this.props.headerAttributionText,
headerBackButton: this.props.headerBackButton,
headerBackButtonAccessibilityLabel: this.props.headerBackButtonAccessibilityLabel,
headerBackButtonCommand: this.props.headerBackButtonCommand,
headerBackgroundColor: this.props.headerBackgroundColor,
headerDivider: this.props.headerDivider,
headerHorizontalAlignmentCentered: this.props.headerHorizontalAlignmentCentered,
headerSubtitle: this.props.headerSubtitle,
headerTitle: this.props.headerTitle,
layoutDirection: this.props.layoutDirection
};
}
componentSpecificRequestHandlers() {
return this.props.headerBackButtonCommand ? this.props.headerBackButtonCommand.getRequestHandlers() : [];
}
}
exports.AlexaHeader = AlexaHeader;