airline-ccai-fulfillment-tools-test
Version:
A collection of tools to assist in the creation of Airline CCAI cards via fulfillment scripts
22 lines (19 loc) • 365 B
text/typescript
import { TIframe, TEMPLATES, SIZES } from '../types';
interface IIframeInput {
width?: SIZES;
height: string;
url: string;
title?: string;
}
export const createIframe = ({
width,
height,
url,
title,
}: IIframeInput): TIframe => ({
template: TEMPLATES.IFRAME,
width: width ?? SIZES.FULL,
height,
url,
title,
});