"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const 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
 */
const customize_1 = require("lib/customize");
const A_1 = __importDefault(require("components/misc/A"));
function Contact({ lower, showEmail = true, }) {
    const { contactEmail } = (0, customize_1.useCustomize)();
    if (!contactEmail)
        return (0, jsx_runtime_1.jsxs)("span", { children: [lower ? "c" : "C", "ontact your site administrator"] });
    return ((0, jsx_runtime_1.jsxs)(A_1.default, { href: "mailto:" + contactEmail, children: [lower ? "c" : "C", "ontact ", showEmail && contactEmail] }));
}
exports.default = Contact;
//# sourceMappingURL=contact.js.map