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) 394 B
import { TProfile, TItems, TEMPLATES, SIZES } from '../types'; interface IProfileInput { items: TItems[]; position?: number; width?: SIZES; title?: string; } export const createProfile = ({ items, width, title, position, }: IProfileInput): TProfile => ({ template: TEMPLATES.PROFILE, items, width: width ?? SIZES.FULL, title, position, });