@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.
11 lines (8 loc) • 558 B
JavaScript
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import { JUSTIFY } from "../consts";
var getJustify = function getJustify(justify) {
var _tokens;
var tokens = (_tokens = {}, _defineProperty(_tokens, JUSTIFY.START, "flex-start"), _defineProperty(_tokens, JUSTIFY.END, "flex-end"), _defineProperty(_tokens, JUSTIFY.CENTER, "center"), _defineProperty(_tokens, JUSTIFY.BETWEEN, "space-between"), _defineProperty(_tokens, JUSTIFY.AROUND, "space-around"), _tokens);
return justify && tokens[justify];
};
export default getJustify;