import { useFilterContext } from "./FilterContext";
var PropertyList = function (props) {
    var filterContext = useFilterContext();
    if (filterContext === undefined) {
        throw new Error("PropertyList requires a FilterComponent as an ancestor");
    }
    return props.children({
        properties: filterContext.getAllProperties(),
    });
};
PropertyList.displayName = "PropertyList";
export default PropertyList;
