import ConnectionInfo from "@calcom/ee/sso/components/ConnectionInfo"; import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired"; import OIDCConnection from "@calcom/features/ee/sso/components/OIDCConnection"; import SAMLConnection from "@calcom/features/ee/sso/components/SAMLConnection"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { Meta, Alert, SkeletonContainer, SkeletonText } from "@calcom/ui"; const SkeletonLoader = ({ title, description }: { title: string; description: string }) => { return ( ); }; export default function SSOConfiguration({ teamId }: { teamId: number | null }) { const { t } = useLocale(); const { data: connection, isPending, error } = trpc.viewer.saml.get.useQuery({ teamId }); if (isPending) { return ; } if (error) { return ( <> > ); } // No connection found if (!connection) { return ( ); } return ( {connection.type === "saml" ? ( ) : ( )} ); }