import { EventCollectionProvider } from "next-collect/client"; import { DefaultSeo } from "next-seo"; import Head from "next/head"; import superjson from "superjson"; import "@calcom/embed-core/src/embed-iframe"; import { httpBatchLink } from "@calcom/trpc/client/links/httpBatchLink"; import { httpLink } from "@calcom/trpc/client/links/httpLink"; import { loggerLink } from "@calcom/trpc/client/links/loggerLink"; import { splitLink } from "@calcom/trpc/client/links/splitLink"; import { withTRPC } from "@calcom/trpc/next"; import type { TRPCClientErrorLike } from "@calcom/trpc/react"; import { Maybe } from "@calcom/trpc/server"; import type { AppRouter } from "@calcom/trpc/server/routers/_app"; import LicenseRequired from "@ee/components/LicenseRequired"; import AppProviders, { AppProps } from "@lib/app-providers"; import { seoConfig } from "@lib/config/next-seo.config"; import useTheme from "@lib/hooks/useTheme"; import I18nLanguageHandler from "@components/I18nLanguageHandler"; import { ContractsProvider } from "../contexts/contractsContext"; import "../styles/fonts.css"; import "../styles/globals.css"; function MyApp(props: AppProps) { const { Component, pageProps, err, router } = props; let pageStatus = "200"; const { Theme } = useTheme("light"); if (router.pathname === "/404") { pageStatus = "404"; } else if (router.pathname === "/500") { pageStatus = "500"; } return (