{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "account-2fa-01", "type": "registry:block", "description": "Two-factor authentication setup", "registryDependencies": [ "button", "card", "input", "label", "switch" ], "files": [ { "path": "creative-tim-ui/blocks/account-2fa-01/page.tsx", "content": "\"use client\"\n\nimport {\n AlertCircle,\n CheckCircle2,\n KeyRound,\n MessageSquare,\n Shield,\n Smartphone,\n} from \"lucide-react\"\n\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { Card } from \"@/components/ui/card\"\n\nconst TwoFactorMethods = [\n {\n title: \"Security Keys\",\n description:\n \"Physical security keys provide the highest level of protection by requiring a hardware device for authentication.\",\n value: \"No security keys configured\",\n action: \"Add\",\n icon: KeyRound,\n isConfigured: false,\n recommended: true,\n },\n {\n title: \"Authenticator App\",\n description:\n \"Generate time-based one-time passwords (TOTP) using apps like Google Authenticator or Authy.\",\n value: \"Not configured\",\n action: \"Setup\",\n icon: Smartphone,\n isConfigured: false,\n recommended: true,\n },\n {\n title: \"SMS Number\",\n description:\n \"Receive verification codes via text message to your registered mobile number.\",\n value: \"+1 (555) 123-4567\",\n action: \"Edit\",\n icon: MessageSquare,\n isConfigured: true,\n recommended: false,\n },\n]\n\nexport default function Account2FA01() {\n return (\n
\n Add an extra layer of security to your account\n
\n{method.title}
\n {method.recommended && (\n \n Recommended\n \n )}\n\n {method.description}\n
\n\n {method.isConfigured && (\n
\n Generate backup codes that can be used if you lose access to\n your 2FA methods. Store them securely in a safe place.\n
\n \n