37 lines
876 B
TypeScript
37 lines
876 B
TypeScript
import type { GetServerSidePropsContext } from "next";
|
|
import Head from "next/head";
|
|
|
|
import { CreateANewTeamForm } from "@calcom/features/ee/teams/components";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
|
|
import { getLayout } from "@components/layouts/WizardLayout";
|
|
|
|
import { ssrInit } from "@server/lib/ssr";
|
|
|
|
const CreateNewTeamPage = () => {
|
|
const { t } = useLocale();
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>{t("create_new_team")}</title>
|
|
<meta name="description" content={t("create_new_team_description")} />
|
|
</Head>
|
|
<CreateANewTeamForm />
|
|
</>
|
|
);
|
|
};
|
|
|
|
CreateNewTeamPage.getLayout = getLayout;
|
|
|
|
export const getServerSideProps = async (context: GetServerSidePropsContext) => {
|
|
const ssr = await ssrInit(context);
|
|
|
|
return {
|
|
props: {
|
|
trpcState: ssr.dehydrate(),
|
|
},
|
|
};
|
|
};
|
|
|
|
export default CreateNewTeamPage;
|