UNPKG

twilio-ccai-fulfillment-tools

Version:

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

22 lines (19 loc) 388 B
import { TDetail, TItems, TEMPLATES, SIZES } from '../types'; interface IDetailInput { items: TItems[]; position?: number; width?: SIZES; title?: string; } export const createDetail = ({ items, width, title, position, }: IDetailInput): TDetail => ({ template: TEMPLATES.DETAIL, items, width: width ?? SIZES.FULL, title, position, });