import React from 'react'; import { WifiOff, RefreshCw, Settings } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; interface Props { onRetry: () => void; isChecking: boolean; showSettingsLink?: boolean; serverName?: string; } export default function OfflineBanner({ onRetry, isChecking, showSettingsLink, serverName }: Props) { const { t } = useTranslation(); const navigate = useNavigate(); const message = showSettingsLink ? t('connection.offlineNoCacheBanner', { server: serverName }) : t('connection.offlineModeBanner'); return (
{message} {showSettingsLink && ( )}
); }