"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModalitiesMetaDataBlock = void 0;
const react_1 = __importDefault(require("react"));
const react_router_dom_1 = require("react-router-dom");
const ModalitiesMetaDataBlock = ({ items, className, }) => {
    const customCase = {
        mri: 'MRI',
        ieeg: 'iEEG',
        pet: 'PET',
        eeg: 'EEG',
        meg: 'MEG',
    };
    return (react_1.default.createElement("div", { className: 'dataset-meta-block ' + className },
        react_1.default.createElement("h2", { className: "dmb-heading" }, "Available Modalities"),
        items.map((item, index) => (react_1.default.createElement(react_router_dom_1.Link, { key: index, to: '/search/modality/' + item.toLowerCase() }, item.toLowerCase() in customCase
            ? customCase[item.toLowerCase()]
            : item)))));
};
exports.ModalitiesMetaDataBlock = ModalitiesMetaDataBlock;
