UNPKG

twilio-ccai-fulfillment-tools

Version:

A collection of tools to assist in the creation of Twilio CCAI Integration cards via fulfillment scripts

25 lines (22 loc) 416 B
import { TIframe, TEMPLATES, SIZES } from '../types'; interface IIframeInput { width?: SIZES; position?: number; height: string; url: string; title?: string; } export const createIframe = ({ width, height, url, title, position, }: IIframeInput): TIframe => ({ template: TEMPLATES.IFRAME, width: width ?? SIZES.FULL, height, url, title, position, });