"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 © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
const router_1 = require("next/router");
const antd_1 = require("antd");
const icon_1 = require("@cocalc/frontend/components/icon");
const try_1 = __importDefault(require("components/auth/try"));
function OpenAnonymously() {
    const router = (0, router_1.useRouter)();
    return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(antd_1.Divider, { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "mask", style: { marginRight: "10px" } }), " Anonymously"] }), (0, jsx_runtime_1.jsx)(try_1.default, { minimal: true, onSuccess: () => router.push({
                    pathname: router.asPath.split("?")[0],
                    query: { edit: "true" },
                }) })] }));
}
exports.default = OpenAnonymously;
//# sourceMappingURL=open-anonymously.js.map