UNPKG

airline-ccai-fulfillment-tools-test

Version:

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

19 lines (16 loc) 337 B
import { TDetail, TItems, TEMPLATES, SIZES } from '../types'; interface IDetailInput { items: TItems[]; width?: SIZES; title?: string; } export const createDetail = ({ items, width, title, }: IDetailInput): TDetail => ({ template: TEMPLATES.DETAIL, items, width: width ?? SIZES.FULL, title, });