import type { Nip95Config } from '@/lib/configStorageTypes' import { Button } from '../ui' import { t } from '@/lib/i18n' import { Nip95ApiList } from './Nip95ApiList' export function Nip95ConfigContent(params: { apis: Nip95Config[] error: string | null editingId: string | null newUrl: string showAddForm: boolean draggedId: string | null dragOverId: string | null onClearError: () => void onToggleAddForm: () => void onNewUrlChange: (value: string) => void onCancelAdd: () => void onAddApi: () => void onStartEditing: (id: string) => void onStopEditing: () => void onUpdateUrl: (id: string, url: string) => void onToggleEnabled: (id: string, enabled: boolean) => void onRemoveApi: (id: string) => void onDragStart: (e: React.DragEvent, id: string) => void onDragOver: (e: React.DragEvent, id: string) => void onDragLeave: () => void onDrop: (e: React.DragEvent, targetId: string) => void }): React.ReactElement { return (
{params.error ? : null}
{params.showAddForm ? : null}
) } function ErrorBanner(params: { error: string; onClear: () => void }): React.ReactElement { return (
{params.error}
) } function Header(params: { showAddForm: boolean; onToggleAddForm: () => void }): React.ReactElement { return (

{t('settings.nip95.title')}

) } function AddForm(params: { newUrl: string; onNewUrlChange: (value: string) => void; onAdd: () => void; onCancel: () => void }): React.ReactElement { return (
params.onNewUrlChange(e.target.value)} placeholder={t('settings.nip95.add.placeholder')} className="w-full px-4 py-2 bg-cyber-darker border border-cyber-accent/30 rounded text-cyber-light focus:border-neon-cyan focus:outline-none" />
) } function Notes(): React.ReactElement { return (

{t('settings.nip95.note.title')} {t('settings.nip95.note.priority')}

{t('settings.nip95.note.fallback')}

) }