import { useState } from "react"; import { Badge, Button } from "@calcom/ui"; import { useLocale } from "@lib/hooks/useLocale"; import DisableTwoFactorModal from "./DisableTwoFactorModal"; import EnableTwoFactorModal from "./EnableTwoFactorModal"; const TwoFactorAuthSection = ({ twoFactorEnabled }: { twoFactorEnabled: boolean }) => { const [enabled, setEnabled] = useState(twoFactorEnabled); const [enableModalOpen, setEnableModalOpen] = useState(false); const [disableModalOpen, setDisableModalOpen] = useState(false); const { t } = useLocale(); return ( <>
{t("add_an_extra_layer_of_security")}