"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FilterContext_1 = require("./FilterContext");
var ArticleList = function (props) {
    var filterContext = FilterContext_1.useFilterContext();
    if (!filterContext) {
        throw new Error("ArticleList requires a Filter Component as an ancestor");
    }
    return props.children({ articles: filterContext.getArticles() });
};
ArticleList.displayName = "ArticleList";
exports.default = ArticleList;
