import { getDictionary } from "@/i18n/get-dictionary";
import { LoadingScreen } from "@/components/shared/loading-screen";

/**
 * Loading page for this part of the site and the pages under it (Next.js shows it while a page that wasn't
 * prefetched loads). Owner's choice (no Figma design): the logo mark pulsing in the middle of the screen.
 * It is per section, not in app/[lang]/: there it would also wrap the catch-all [...missing] route, which then
 * can't be prerendered (and unknown links would lose their real 404 status). Home is fully static and needs none.
 */
export default async function Loading() {
  const { nav } = await getDictionary();
  return <LoadingScreen label={nav.loading} />;
}
