ezcss
Version:
Super lite CSS-in-JS
22 lines (21 loc) • 735 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var toCssDeclarations = function (declarations) {
var css = '';
if (declarations) {
if (process.env.NODE_ENV === 'production') {
for (var j = 0; j < declarations.length; j++) {
var _a = declarations[j], property = _a[0], value = _a[1];
css += property + ':' + value + ';';
}
}
else {
for (var j = 0; j < declarations.length; j++) {
var _b = declarations[j], property = _b[0], value = _b[1];
css += ' ' + property + ': ' + value + ';\n';
}
}
}
return css;
};
exports.default = toCssDeclarations;
;