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) • 341 B
text/typescript
import { TItemBoolean, ITEMS, SIZES } from '../../types';
interface IBooleanItemInput {
title?: string;
width?: SIZES;
data: string;
}
export const createBooleanItem = ({
title,
width,
data,
}: IBooleanItemInput): TItemBoolean => ({
type: ITEMS.BOOLEAN,
title,
width: width ?? SIZES.FULL,
data,
});