"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 __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 link_1 = __importDefault(require("next/link"));
var util_1 = require("lib/share/util");
var avatar_1 = __importDefault(require("components/account/avatar"));
function User(_a) {
    var account_id = _a.account_id, first_name = _a.first_name, last_name = _a.last_name;
    return ((0, jsx_runtime_1.jsx)(link_1.default, __assign({ href: "/share/accounts/".concat(account_id) }, { children: (0, jsx_runtime_1.jsxs)("a", { children: [(0, jsx_runtime_1.jsx)(avatar_1.default, { account_id: account_id, style: { marginRight: "5px" } }), (0, util_1.trunc)("".concat(first_name, " ").concat(last_name), 50)] }) })));
}
exports.default = User;
//# sourceMappingURL=user.js.map