import { X } from 'lucide-react' import { v4 as uuidv4 } from 'uuid' import { maskSecret } from '../../utils/maskSecret' export default function AddKeyModal({ show, t, editingKey, newKey, setNewKey, loading, onClose, onAdd }) { if (!show) { return null } const isEditing = Boolean(editingKey?.key) const displayKey = isEditing ? maskSecret(editingKey?.key || newKey.key) : newKey.key return (
{isEditing ? t('accountManager.keyReadonlyHint') : t('accountManager.generateHint')}