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) • 323 B
text/typescript
import { TItemText, ITEMS, SIZES } from '../../types';
interface ITextItemInput {
title?: string;
width?: SIZES;
data: string;
}
export const createTextItem = ({
title,
width,
data,
}: ITextItemInput): TItemText => ({
type: ITEMS.TEXT,
title,
width: width ?? SIZES.FULL,
data,
});