'use client' import type { User } from '../types' import { useThemeStyles, cn } from '@/lib/ui-styles' import Modal from '@/components/ui/Modal' interface TransferSuperAdminModalProps { isOpen: boolean targetUser: User | null password: string onClose: () => void onChangePassword: (value: string) => void onConfirm: () => void } export default function TransferSuperAdminModal({ isOpen, targetUser, password, onClose, onChangePassword, onConfirm, }: TransferSuperAdminModalProps) { const styles = useThemeStyles() if (!isOpen || !targetUser) return null return ( } >

请输入您的密码以确认此操作

警告:转移给 {targetUser.username}({targetUser.email})后,当前账号将失去最高权限。
onChangePassword(e.target.value)} onKeyDown={(e) => { if (e.key === 'Enter') { onConfirm() } }} className={styles.inputStyles.base} placeholder="请输入您的密码" />
) }