mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-21 22:15:40 +00:00
936e548f40
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
685 B
TypeScript
27 lines
685 B
TypeScript
import React from 'react';
|
|
import { WifiOff, RefreshCw } from 'lucide-react';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
interface Props {
|
|
onRetry: () => void;
|
|
isChecking: boolean;
|
|
}
|
|
|
|
export default function OfflineBanner({ onRetry, isChecking }: Props) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div className="offline-banner">
|
|
<WifiOff size={14} />
|
|
<span>{t('connection.offlineModeBanner')}</span>
|
|
<button
|
|
className="offline-banner-retry"
|
|
onClick={onRetry}
|
|
disabled={isChecking}
|
|
>
|
|
<RefreshCw size={12} className={isChecking ? 'spin' : ''} />
|
|
{t('connection.retry')}
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|