@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.
20 lines (14 loc) • 782 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _consts = require("../consts");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var getAlign = function getAlign(align) {
var _tokens;
var tokens = (_tokens = {}, _defineProperty(_tokens, _consts.ALIGNS.START, "flex-start"), _defineProperty(_tokens, _consts.ALIGNS.END, "flex-end"), _defineProperty(_tokens, _consts.ALIGNS.CENTER, "center"), _defineProperty(_tokens, _consts.ALIGNS.STRETCH, "stretch"), _tokens);
return align && tokens[align];
};
var _default = getAlign;
exports.default = _default;