mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* wip * wip * refactor * add pathname * fix * fix: manually construct pathname for metadata functions Co-Authored-By: [email protected] <[email protected]> * fix: add pathname parameter to all metadata functions Co-Authored-By: [email protected] <[email protected]> * fix: add pathname parameter to remaining metadata functions Co-Authored-By: [email protected] <[email protected]> * fix * fix * fix type checks * Refactor * fix * fix --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { withAppDirSsr } from "app/WithAppDirSsr";
|
|
import type { PageProps as ServerPageProps } from "app/_types";
|
|
import { _generateMetadata } from "app/_utils";
|
|
import { cookies, headers } from "next/headers";
|
|
|
|
import { buildLegacyCtx } from "@lib/buildLegacyCtx";
|
|
|
|
import { getServerSideProps } from "@server/lib/auth/verify-email-change/getServerSideProps";
|
|
|
|
import type { PageProps as ClientPageProps } from "~/auth/verify-email-change-view";
|
|
import VerifyEmailChange from "~/auth/verify-email-change-view";
|
|
|
|
export const generateMetadata = async () => {
|
|
return await _generateMetadata(
|
|
(t) => t("verify_email_change"),
|
|
() => "",
|
|
undefined,
|
|
undefined,
|
|
"/auth/verify-email-change"
|
|
);
|
|
};
|
|
|
|
const getData = withAppDirSsr<ClientPageProps>(getServerSideProps);
|
|
const ServerPage = async ({ params, searchParams }: ServerPageProps) => {
|
|
const props = await getData(
|
|
buildLegacyCtx(await headers(), await cookies(), await params, await searchParams)
|
|
);
|
|
return <VerifyEmailChange {...props} />;
|
|
};
|
|
export default ServerPage;
|