"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const core_1 = require("@bluebase/core");
const components_1 = require("@bluebase/components");
const react_1 = tslib_1.__importDefault(require("react"));
class ComponentList extends react_1.default.PureComponent {
    render() {
        const BB = this.context;
        const components = BB.Components.filter(p => !!p);
        return (react_1.default.createElement(components_1.View, null, Object.values(components).map((component, index) => (react_1.default.createElement(react_1.default.Fragment, null,
            react_1.default.createElement(components_1.ListItem, { title: component.key }),
            (index < Object.keys(components).length - 1) && react_1.default.createElement(components_1.Divider, null))))));
    }
}
ComponentList.contextType = core_1.BlueBaseContext;
exports.ComponentList = ComponentList;
