@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.
22 lines (15 loc) • 914 B
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _consts = require("../consts");
var getJustify = function getJustify(justify) {
var _tokens;
var tokens = (_tokens = {}, (0, _defineProperty2.default)(_tokens, _consts.JUSTIFY.START, "flex-start"), (0, _defineProperty2.default)(_tokens, _consts.JUSTIFY.END, "flex-end"), (0, _defineProperty2.default)(_tokens, _consts.JUSTIFY.CENTER, "center"), (0, _defineProperty2.default)(_tokens, _consts.JUSTIFY.BETWEEN, "space-between"), (0, _defineProperty2.default)(_tokens, _consts.JUSTIFY.AROUND, "space-around"), _tokens);
return justify && tokens[justify];
};
var _default = getJustify;
exports.default = _default;