UNPKG

twilio-ccai-fulfillment-tools

Version:

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

19 lines (16 loc) 366 B
import { TItemPhoneNumber, ITEMS, SIZES } from '../../types'; interface IPhoneNumberItemInput { title?: string; width?: SIZES; data: string; } export const createPhoneNumberItem = ({ title, width, data, }: IPhoneNumberItemInput): TItemPhoneNumber => ({ type: ITEMS.PHONE_NUMBER, title, width: width ?? SIZES.FULL, data, });