twilio-ccai-fulfillment-tools
Version:
A collection of tools to assist in the creation of Twilio CCAI Integration cards via fulfillment scripts
16 lines (15 loc) • 525 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIframe = void 0;
var types_1 = require("../types");
exports.createIframe = function (_a) {
var width = _a.width, height = _a.height, url = _a.url, title = _a.title, position = _a.position;
return ({
template: types_1.TEMPLATES.IFRAME,
width: width !== null && width !== void 0 ? width : types_1.SIZES.FULL,
height: height,
url: url,
title: title,
position: position,
});
};