import type { GetServerSidePropsContext } from "next"; import { TeamsListing } from "@calcom/features/ee/teams/components"; import Shell from "@calcom/features/shell/Shell"; import { WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { Button } from "@calcom/ui"; import { Plus } from "@calcom/ui/components/icon"; import PageWrapper from "@components/PageWrapper"; import { ssrInit } from "@server/lib/ssr"; function Teams() { const { t } = useLocale(); const [user] = trpc.viewer.me.useSuspenseQuery(); return ( {t("new")} ) }> ); } export const getServerSideProps = async (context: GetServerSidePropsContext) => { const ssr = await ssrInit(context); await ssr.viewer.me.prefetch(); return { props: { trpcState: ssr.dehydrate() } }; }; Teams.requiresLicense = false; Teams.PageWrapper = PageWrapper; export default Teams;