"use client"; import { Spinner } from "@/components/ui"; import { useI18n } from "@/lib/i18n"; /** * Route-level loading screen (used by `loading.tsx` boundaries and by client * screens that wait for local data). Rendered the moment a navigation starts, * so a slow request never looks like a dead tap. */ export function RouteLoading({ messageKey }: { messageKey: string }) { const { t } = useI18n(); return (
{/* eslint-disable-next-line @next/next/no-img-element -- static app icon, no optimisation needed */}

{t(messageKey)}

); }