/** * Edit Key Panel - Edit existing SSH key */ import { Info } from 'lucide-react'; import React from 'react'; import { useI18n } from '../../application/i18n/I18nProvider'; import { SSHKey } from '../../types'; import { Button } from '../ui/button'; import { Input } from '../ui/input'; import { Label } from '../ui/label'; import { Textarea } from '../ui/textarea'; interface EditKeyPanelProps { draftKey: Partial; _originalKey: SSHKey; // Reserved for future diff/comparison feature setDraftKey: (key: Partial) => void; onExport: () => void; onSave: () => void; } export const EditKeyPanel: React.FC = ({ draftKey, _originalKey, // Reserved for future diff/comparison feature setDraftKey, onExport, onSave, }) => { const { t } = useI18n(); return ( <>
setDraftKey({ ...draftKey, label: e.target.value })} placeholder={t('keychain.field.labelPlaceholder')} />