"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FilterContext_1 = require("./FilterContext");
var PropertyList = function (props) {
    var filterContext = FilterContext_1.useFilterContext();
    if (filterContext === undefined) {
        throw new Error("PropertyList requires a FilterComponent as an ancestor");
    }
    return props.children({
        properties: filterContext.getAllProperties(),
    });
};
PropertyList.displayName = "PropertyList";
exports.default = PropertyList;
