46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
"use client";
|
|
|
|
import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired";
|
|
import { CreateANewPlatformForm } from "@calcom/features/ee/platform/components/index";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { WizardLayout, Meta, WizardLayoutAppDir } from "@calcom/ui";
|
|
|
|
import { getServerSideProps } from "@lib/settings/organizations/new/getServerSideProps";
|
|
|
|
import PageWrapper from "@components/PageWrapper";
|
|
|
|
const CreateNewOrganizationPage = () => {
|
|
const { t } = useLocale();
|
|
return (
|
|
<LicenseRequired>
|
|
<Meta
|
|
title={t("set_up_your_platform_organization")}
|
|
description={t("platform_organization_description")}
|
|
/>
|
|
<CreateANewPlatformForm />
|
|
</LicenseRequired>
|
|
);
|
|
};
|
|
const LayoutWrapper = (page: React.ReactElement) => {
|
|
return (
|
|
<WizardLayout currentStep={1} maxSteps={1}>
|
|
{page}
|
|
</WizardLayout>
|
|
);
|
|
};
|
|
|
|
export const LayoutWrapperAppDir = (page: React.ReactElement) => {
|
|
return (
|
|
<WizardLayoutAppDir currentStep={1} maxSteps={2}>
|
|
{page}
|
|
</WizardLayoutAppDir>
|
|
);
|
|
};
|
|
|
|
CreateNewOrganizationPage.getLayout = LayoutWrapper;
|
|
CreateNewOrganizationPage.PageWrapper = PageWrapper;
|
|
|
|
export default CreateNewOrganizationPage;
|
|
|
|
export { getServerSideProps };
|