"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");
/*
 *  This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
var customize_1 = require("lib/customize");
var A_1 = __importDefault(require("components/misc/A"));
function Contact(_a) {
    var lower = _a.lower, _b = _a.showEmail, showEmail = _b === void 0 ? true : _b;
    var contactEmail = (0, customize_1.useCustomize)().contactEmail;
    if (!contactEmail)
        return null;
    return ((0, jsx_runtime_1.jsxs)(A_1.default, __assign({ href: "mailto:" + contactEmail }, { children: [lower ? "c" : "C", "ontact ", showEmail && contactEmail] })));
}
exports.default = Contact;
//# sourceMappingURL=contact.js.map