"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SearchResultsList = void 0;
const react_1 = __importDefault(require("react"));
const SearchResultItem_1 = require("./SearchResultItem");
require("./search-page.scss");
const SearchResultsList = ({ items, profile, datasetTypeSelected, hasEditPermissions, }) => {
    return (react_1.default.createElement("div", { className: "search-results" }, items.map((data) => {
        if (data) {
            return (react_1.default.createElement(SearchResultItem_1.SearchResultItem, { node: data.node, key: data.node.id, profile: profile, hasEditPermissions: hasEditPermissions, datasetTypeSelected: datasetTypeSelected }));
        }
    })));
};
exports.SearchResultsList = SearchResultsList;
