import { useState } from "react"; import { Controller, useForm } from "react-hook-form"; import type { SSOConnection } from "@calcom/ee/sso/lib/saml"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { Button, DialogFooter, Form, showToast, TextField, Dialog, DialogContent } from "@calcom/ui"; type FormValues = { clientId: string; clientSecret: string; wellKnownUrl: string; }; export default function OIDCConnection({ teamId, connection, }: { teamId: number | null; connection: SSOConnection | null; }) { const { t } = useLocale(); const [openModal, setOpenModal] = useState(false); return (
{t("sso_oidc_description")}