@netdata/netdata-ui
Version:
netdata UI kit
16 lines (15 loc) • 761 B
JavaScript
;
exports.__esModule = true;
exports["default"] = void 0;
var _default = exports["default"] = function _default(_ref) {
var baseUnit = _ref.theme.constants.SIZE_SUB_UNIT,
height = _ref.height;
if (typeof height === "object") {
var _height$min = height.min,
min = _height$min === void 0 ? "" : _height$min,
_height$max = height.max,
max = _height$max === void 0 ? "" : _height$max;
return "\n " + (min && "min-height: " + (typeof min === "number" ? baseUnit * min + "px" : min) + ";") + "\n " + (max && "max-height: " + (typeof max === "number" ? baseUnit * max + "px" : max) + ";") + "\n ";
}
return height && "height: " + (typeof height === "number" ? baseUnit * height + "px" : height) + ";";
};