"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 use_customize_1 = __importDefault(require("lib/use-customize"));
var cocalc_icon_svg_1 = __importDefault(require("public/cocalc-icon.svg"));
var image_1 = __importDefault(require("components/landing/image"));
var alt = "Square CoCalc Logo";
function SquareLogo(_a) {
    var style = _a.style, priority = _a.priority;
    var logoSquareURL = (0, use_customize_1.default)().logoSquareURL;
    if (!logoSquareURL) {
        return ((0, jsx_runtime_1.jsx)(image_1.default, { alt: alt, src: cocalc_icon_svg_1.default, style: __assign(__assign({}, style), { maxWidth: "100%" }), priority: priority }));
    }
    return ((0, jsx_runtime_1.jsx)("img", { alt: alt, src: logoSquareURL, style: __assign(__assign({}, style), { maxWidth: "100%" }) }));
}
exports.default = SquareLogo;
//# sourceMappingURL=logo-square.js.map