@duffel/components
Version:
Component library to build your travel product with Duffel.
21 lines (20 loc) • 452 B
TypeScript
import React from "react";
interface City {
type: "city";
name: string;
iata_code: string;
}
interface Airport {
type: "airport";
name: string;
iata_code: string;
latitude: string;
longitude: string;
}
type Place = City | Airport;
export interface PlacesLookupProps {
onPlaceSelected: (selection: Place) => void;
placeholder?: string;
}
export declare const PlacesLookup: React.FC<PlacesLookupProps>;
export {};