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.

23 lines (21 loc) 652 B
import * as React from "react"; import styled from "styled-components"; import defaultTheme from "../../defaultTheme"; import { rtlSpacing } from "../../utils/rtl"; const StyledTripLayover = styled.div.withConfig({ displayName: "TripLayover__StyledTripLayover", componentId: "sc-1uzfgjz-0" })(["margin:", ";"], ({ theme }) => rtlSpacing(`${theme.orbit.spaceSmall} 0 ${theme.orbit.spaceSmall} ${theme.orbit.spaceLarge}`)); StyledTripLayover.defaultProps = { theme: defaultTheme }; const TripLayover = ({ children, dataTest }) => React.createElement(StyledTripLayover, { "data-test": dataTest }, children); export default TripLayover;