import { type FlightBundle } from "../../types/flights"; export const getBundleFare = (bundle: FlightBundle, fareId: string) => { return bundle.tiles .find((tile) => tile?.fareOptions.find((fare) => fare.id === fareId)) ?.fareOptions.find((fare) => fare.id === fareId); };