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) • 343 B
text/typescript
import { TProfile, TItems, TEMPLATES, SIZES } from '../types';
interface IProfileInput {
items: TItems[];
width?: SIZES;
title?: string;
}
export const createProfile = ({
items,
width,
title,
}: IProfileInput): TProfile => ({
template: TEMPLATES.PROFILE,
items,
width: width ?? SIZES.FULL,
title,
});