"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AggregateCount = void 0;
const react_1 = __importDefault(require("react"));
const AggregateCount = ({ count, type }) => {
    const textContent = {
        publicDataset: "Public Dataset",
        participants: "Participant",
    }[type];
    return (react_1.default.createElement("div", { className: "aggregate-count" },
        react_1.default.createElement("span", null, count.toLocaleString()),
        " ",
        textContent,
        count !== 1 && "s"));
};
exports.AggregateCount = AggregateCount;
