"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __values = (this && this.__values) || function(o) {
    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
    if (m) return m.call(o);
    if (o && typeof o.length === "number") return {
        next: function () {
            if (o && i >= o.length) o = void 0;
            return { value: o && o[i++], done: !o };
        }
    };
    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var jsx_runtime_1 = require("react/jsx-runtime");
var user_1 = __importDefault(require("./user"));
function Collaborators(_a) {
    var e_1, _b;
    var collaborators = _a.collaborators;
    var v = [];
    try {
        for (var _c = __values(collaborators !== null && collaborators !== void 0 ? collaborators : []), _d = _c.next(); !_d.done; _d = _c.next()) {
            var user = _d.value;
            v.push((0, jsx_runtime_1.jsx)(user_1.default, __assign({}, user), user.account_id));
            v.push((0, jsx_runtime_1.jsxs)("span", { children: [", ", "\u00A0\u00A0"] }, user.account_id + ","));
        }
    }
    catch (e_1_1) { e_1 = { error: e_1_1 }; }
    finally {
        try {
            if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
        }
        finally { if (e_1) throw e_1.error; }
    }
    v.pop(); // discard last comma.
    return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: v });
}
exports.default = Collaborators;
//# sourceMappingURL=collaborators.js.map