()
| 11 | * StatusDot is its live indicator, so the only thing left to own is the |
| 12 | * slide-in/out transform — the banner is absent, not just invisible, when the |
| 13 | * app is not running. |
| 14 | */ |
| 15 | export const Debug: React.FC<{ children?: any; lang: Lang }> = ({ |
| 16 | children, |
| 17 | lang, |
| 18 | }) => { |
| 19 | const [connected, setConnected] = useState(false); |
| 20 | |
| 21 | const t = useTranslations(lang); |
| 22 | |
| 23 | useEffect(() => { |
| 24 | const check = async () => { |
| 25 | const reachable = await isApiAccessible(); |
no test coverage detected