Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

1.4 KB
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.

import { Trans } from "@lingui/react/macro";
import { LuShieldCheck } from "react-icons/lu";
import {
  UpgradeOverlayActions,
  UpgradeOverlayContent,
  UpgradeOverlayDescription,
  UpgradeOverlayDialog,
  UpgradeOverlayIcon,
  UpgradeOverlayTitle,
  UpgradeOverlayUpgradeButton
} from "~/components/UpgradeOverlay";

export default function TwoFactorUpgradeDialog({
  open,
  onOpenChange
}: {
  open: boolean;
  onOpenChange: (open: boolean) => void;
}) {
  return (
    <UpgradeOverlayDialog open={open} onOpenChange={onOpenChange}>
      <UpgradeOverlayIcon>
        <LuShieldCheck className="size-6 text-muted-foreground" />
      </UpgradeOverlayIcon>
      <UpgradeOverlayContent>
        <UpgradeOverlayTitle>
          <Trans>Two-Factor Authentication</Trans>
        </UpgradeOverlayTitle>
        <UpgradeOverlayDescription>
          <Trans>
            Add an extra layer of security by requiring a code from an
            authenticator app when signing in.
          </Trans>
        </UpgradeOverlayDescription>
      </UpgradeOverlayContent>
      <UpgradeOverlayActions>
        <UpgradeOverlayUpgradeButton />
      </UpgradeOverlayActions>
    </UpgradeOverlayDialog>
  );
}