Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

635 B
Raw Blame
import { useTranslation } from "react-i18next";
import { Alert } from "@/components/ui/alert";
import { TwoFactorSetupPage } from "@/routes/workspace/two-factor/TwoFactorSetupPage";
import { useAppStore } from "@/stores/app";

export function TwoFactorRequiredPage() {
  const { t } = useTranslation();
  return (
    <div className="w-full">
      <Alert
        variant="warning"
        description={t("two-factor.messages.2fa-required")}
      />
      <div className="w-full p-2 sm:p-8 sm:px-16">
        <TwoFactorSetupPage
          cancelAction={() => useAppStore.getState().logout()}
        />
      </div>
    </div>
  );
}