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.

15 lines (13 loc) 380 B
import { css } from "styled-components"; import POSITIONS from "../consts"; import { left, right } from "../../utils/rtl"; var getPosition = function getPosition(_ref) { var position = _ref.position, theme = _ref.theme; return css(["", ":0;"], position === POSITIONS.RIGHT ? right({ theme: theme }) : left({ theme: theme })); }; export default getPosition;