@duffel/components
Version:
Component library to build your travel product with Duffel.
15 lines (14 loc) • 644 B
TypeScript
/// <reference types="@duffel/api" />
import { CreateOrderService, SeatMapCabinRowSectionElementSeat } from "@duffel/api/types";
import * as React from "react";
import { WithSeatServiceInformation } from "src/types";
interface SeatElementProps {
element: SeatMapCabinRowSectionElementSeat;
currentSegmentId: string;
currentPassengerId: string;
currentPassengerName: string;
onSeatToggled: (seatService: WithSeatServiceInformation<CreateOrderService>) => void;
selectedServicesMap: Record<string, WithSeatServiceInformation<CreateOrderService>>;
}
export declare const SeatElement: React.FC<SeatElementProps>;
export {};