"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NemarButton = void 0;
const react_1 = __importDefault(require("react"));
const Tooltip_1 = require("../tooltip/Tooltip");
const Button_1 = require("../button/Button");
const NemarButton = ({ datasetId, onNemar, }) => {
    const url = `https://nemar.org/dataexplorer/detail?dataset_id=${datasetId}`;
    return (react_1.default.createElement(react_1.default.Fragment, null, onNemar && (react_1.default.createElement("div", { className: "brainlife-block" },
        react_1.default.createElement(Tooltip_1.Tooltip, { tooltip: "View and analyze on NEMAR", flow: "up" },
            react_1.default.createElement(Button_1.Button, { className: "brainlife-link", primary: true, size: "small", onClick: () => {
                    window.open(url, '_blank');
                }, label: "NEMAR" }))))));
};
exports.NemarButton = NemarButton;
