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) 447 B
import { TTimeline, TEMPLATES, SIZES } from '../types'; interface ITimelineInput { position?: number; items: Array<{ title: string; subtitle: string; }>; width?: SIZES; title?: string; } export const createTimeline = ({ items, width, title, position, }: ITimelineInput): TTimeline => ({ template: TEMPLATES.TIMELINE, items, width: width ?? SIZES.FULL, title, position, });