"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdaptableObjectCollection = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
/// <reference path="../../typings/.d.ts" />
const PanelWithRow_1 = require("../Panels/PanelWithRow");
const rebass_1 = require("rebass");
const AdaptableObjectCollection = (props) => {
    const allowOverflow = props.allowOverflow ? 'visible' : 'auto';
    return (React.createElement(rebass_1.Box, { style: { ...props.style }, className: "ab-ObjectCollection" },
        React.createElement(PanelWithRow_1.PanelWithRow, { border: "none", colItems: props.colItems, headerAlign: props.headerAlign }),
        React.createElement("div", { className: "ab-ObjectCollection__items", style: { overflowY: allowOverflow, boxShadow: 'none' } }, props.items)));
};
exports.AdaptableObjectCollection = AdaptableObjectCollection;
