UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.

26 lines (25 loc) 1.13 kB
"use client"; import * as React from "react"; import ItinerarySegmentBanner from "./ItinerarySegment/ItinerarySegmentBanner"; import ItineraryBadgeList, { ItineraryBadgeListItem } from "./ItineraryBadgeList"; import ItinerarySegment from "./ItinerarySegment"; import ItinerarySeparator from "./ItinerarySeparator"; import ItineraryStatus from "./ItineraryStatus"; import ItinerarySegmentStop from "./ItinerarySegment/ItinerarySegmentStop"; import ItinerarySegmentDetail from "./ItinerarySegment/ItinerarySegmentDetail"; import { ItineraryProvider } from "./context"; import { spaceAfterClasses } from "../common/tailwind"; const Itinerary = ({ children, dataTest, spaceAfter, id }) => { return /*#__PURE__*/React.createElement("div", { className: spaceAfter && spaceAfterClasses[spaceAfter], "data-test": dataTest, id: id }, /*#__PURE__*/React.createElement(ItineraryProvider, null, children)); }; export { ItinerarySegment, ItinerarySegmentBanner, ItinerarySegmentDetail, ItinerarySegmentStop, ItinerarySeparator, ItineraryBadgeList, ItineraryBadgeListItem, ItineraryStatus }; export default Itinerary;