@brizy/ui
Version:
React elements in Brizy style
8 lines (7 loc) • 469 B
JavaScript
import React from "react";
import { getViewStyles } from "../utils";
import { BRZ_PREFIX } from "../../constants";
export const View = (autoHeightMax) => function View(props) {
const style = Object.assign(Object.assign(Object.assign({}, props.style), getViewStyles), (autoHeightMax !== undefined ? { maxHeight: autoHeightMax } : {}));
return React.createElement("div", Object.assign({}, props, { style: style, className: `${BRZ_PREFIX}-scrollbar__view` }));
};