'use client'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import type { SecuritySettings } from '../types'; interface TwoFactorAuthProps { securitySettings: SecuritySettings | null; onUpdate: (updates: Partial) => void; } export function TwoFactorAuth({ securitySettings, onUpdate }: TwoFactorAuthProps) { const handleToggle = () => { onUpdate({ twoFactorEnabled: !securitySettings?.twoFactorEnabled }); }; return ( 双因素认证

{securitySettings?.twoFactorEnabled ? '已启用' : '未启用'}

为您的账户添加额外的安全保护

); }