All files / src/app/routes RouteHydrateFallback.tsx

0% Statements 0/2
100% Branches 0/0
0% Functions 0/1
0% Lines 0/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                             
import { useTranslation } from 'react-i18next'
 
export function RouteHydrateFallback() {
  const { t } = useTranslation()
 
  return (
    <main className="flex min-h-screen items-center justify-center bg-background p-6" aria-busy="true">
      <div role="status" aria-live="polite" className="flex flex-col items-center gap-3 text-muted-foreground">
        <div aria-hidden="true" className="border-t-transparent h-8 w-8 animate-spin rounded-full border-2 border-primary" />
        <span className="text-sm font-medium">{t('common.loading')}</span>
      </div>
    </main>
  )
}