UNPKG

airline-ccai-fulfillment-tools-test

Version:

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

15 lines (12 loc) 312 B
import { TCard, TItems, TEMPLATES, SIZES } from '../types'; interface ICardInput { items: TItems[]; width?: SIZES; title?: string; } export const createCard = ({ items, width, title }: ICardInput): TCard => ({ template: TEMPLATES.CARD, items, width: width ?? SIZES.FULL, title, });