airline-ccai-fulfillment-tools-test
Version:
A collection of tools to assist in the creation of Airline CCAI cards via fulfillment scripts
18 lines (15 loc) • 357 B
text/typescript
import { TMap, TEMPLATES, SIZES } from '../types';
interface IMapInput {
geolocation: {
lat: number;
lng: number;
};
width?: SIZES;
title?: string;
}
export const createMap = ({ geolocation, width, title }: IMapInput): TMap => ({
template: TEMPLATES.MAP,
geolocation,
width: width ?? SIZES.FULL,
title,
});