"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = void 0;
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
 */
// Password reset page
// WARNING: this can't work and isn't used – no idea what's going on here.
// as of 2022-07: hub/auth.ts is handing the `/auth/verify?email=...&token=...` route to the verify email addresses.
const antd_1 = require("antd");
const redeem_verify_email_1 = __importDefault(require("components/auth/redeem-verify-email"));
const footer_1 = __importDefault(require("components/landing/footer"));
const head_1 = __importDefault(require("components/landing/head"));
const header_1 = __importDefault(require("components/landing/header"));
const customize_1 = require("lib/customize");
const with_customize_1 = __importDefault(require("lib/with-customize"));
const router_1 = require("next/router");
function PasswordReset({ token, customize }) {
    const router = (0, router_1.useRouter)();
    const { email } = router.query;
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Verify Email Address" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, {}), (0, jsx_runtime_1.jsxs)(antd_1.Layout.Content, { style: { backgroundColor: "white" }, children: [(0, jsx_runtime_1.jsx)(redeem_verify_email_1.default, { token: token, email_address: `${email}` }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] })] }));
}
exports.default = PasswordReset;
async function getServerSideProps(context) {
    const { token } = context.params;
    return await (0, with_customize_1.default)({
        context,
        props: { token },
    });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=%5Btoken%5D.js.map