36 lines
876 B
TypeScript
36 lines
876 B
TypeScript
import { useRouter } from "next/navigation";
|
|
import { useEffect } from "react";
|
|
|
|
import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { Meta } from "@calcom/ui";
|
|
|
|
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
|
import SSOConfiguration from "../components/SSOConfiguration";
|
|
|
|
const SAMLSSO = () => {
|
|
const { t } = useLocale();
|
|
const router = useRouter();
|
|
|
|
useEffect(() => {
|
|
if (HOSTED_CAL_FEATURES) {
|
|
router.push("/404");
|
|
}
|
|
}, []);
|
|
|
|
return (
|
|
<div className="bg-default w-full sm:mx-0">
|
|
<Meta
|
|
title={t("sso_configuration")}
|
|
description={t("sso_configuration_description")}
|
|
borderInShellHeader={true}
|
|
/>
|
|
<SSOConfiguration teamId={null} />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
SAMLSSO.getLayout = getLayout;
|
|
|
|
export default SAMLSSO;
|