@brizy/ui
Version:
React elements in Brizy style
15 lines (14 loc) • 773 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.View = void 0;
const react_1 = __importDefault(require("react"));
const utils_1 = require("../utils");
const constants_1 = require("../../constants");
const View = (autoHeightMax) => function View(props) {
const style = Object.assign(Object.assign(Object.assign({}, props.style), utils_1.getViewStyles), (autoHeightMax !== undefined ? { maxHeight: autoHeightMax } : {}));
return react_1.default.createElement("div", Object.assign({}, props, { style: style, className: `${constants_1.BRZ_PREFIX}-scrollbar__view` }));
};
exports.View = View;