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) 421 B
import { TMap, TEMPLATES, SIZES } from '../types'; interface IMapInput { position?: number; geolocation: { lat: number; lng: number; }; width?: SIZES; title?: string; } export const createMap = ({ geolocation, width, title, position, }: IMapInput): TMap => ({ template: TEMPLATES.MAP, geolocation, width: width ?? SIZES.FULL, title, position, });