MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / OfflineFallback

Function OfflineFallback

apps/ui/src/app/router/OfflineFallback.tsx:18–48  ·  view source on GitHub ↗
({
  onRetry,
  isRetrying
})

Source from the content-addressed store, hash-verified

16 * /login. The body reflects that contract: no re-authentication ask.
17 */
18export const OfflineFallback: FC<IOfflineFallbackProps> = ({
19 onRetry,
20 isRetrying
21}) => {
22 const { t } = useTranslation();
23
24 return (
25 <div
26 role='alert'
27 aria-live='polite'
28 className='flex min-h-screen items-center justify-center px-4'
29 >
30 <div className='border-border bg-card flex max-w-md flex-col gap-4 rounded-lg border p-6 text-center shadow-sm'>
31 <h1 className='text-foreground text-lg font-semibold'>
32 {t("offline.title")}
33 </h1>
34 <p className='text-muted-foreground text-sm'>{t("offline.body")}</p>
35 <div className='flex justify-center'>
36 <Button
37 type='button'
38 variant='default'
39 onClick={onRetry}
40 disabled={isRetrying}
41 >
42 {isRetrying ? t("offline.retrying") : t("offline.retry")}
43 </Button>
44 </div>
45 </div>
46 </div>
47 );
48};

Callers

nothing calls this directly

Calls 1

tFunction · 0.50

Tested by

no test coverage detected