import type { RelayConfig } from '@/lib/configStorageTypes' import { t } from '@/lib/i18n' import { RelayCard } from './RelayCard' interface RelayListProps { relays: RelayConfig[] editingId: string | null draggedId: string | null dragOverId: string | null onStartEditing: (id: string) => void onStopEditing: () => void onUpdateUrl: (id: string, url: string) => void onToggleEnabled: (id: string, enabled: boolean) => void onRemoveRelay: (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 onDragEnd: () => void } export function RelayList(params: RelayListProps): React.ReactElement { if (params.relays.length === 0) { return
{t('settings.relay.empty')}
} return (
{params.relays.map((relay) => ( ))}
) }