* wip * fix * fix * refactor * rename to routingServerSidePropsConfig * refactor * refactor * add routing-link to useIsBookingPage hook * remove Head component * fix * redirect user to apps/routing-forms/forms if user goes to apps/routing-forms * refactor * remove log * remove client component not needed * clean up code * remove unneeded metadata * clean up further * clean up further 2 * fix type check * routing-link does not need shell * Fix title for Routing Form public link and also remove any * Remove ; in HTML * Remove unnecessary page reload --------- Co-authored-by: Hariom Balhara <hariombalhara@gmgmail.com>
20 lines
620 B
TypeScript
20 lines
620 B
TypeScript
import type { GetServerSidePropsContext, GetServerSidePropsResult } from "next";
|
|
import type { CalendsoSessionUser } from "next-auth";
|
|
|
|
import type prisma from "@calcom/prisma";
|
|
|
|
import type { ssrInit } from "@server/lib/ssr";
|
|
|
|
export type AppUser = CalendsoSessionUser | undefined;
|
|
export type AppPrisma = typeof prisma;
|
|
export type AppGetServerSidePropsContext = GetServerSidePropsContext<{
|
|
pages: string[];
|
|
}>;
|
|
export type AppSsrInit = ssrInit;
|
|
export type AppGetServerSideProps = (
|
|
context: AppGetServerSidePropsContext,
|
|
prisma: AppPrisma,
|
|
user: AppUser,
|
|
ssrInit: AppSsrInit
|
|
) => GetServerSidePropsResult;
|