import Image from "next/image";

/**
 * Full-screen loading state (app/[lang]/loading.tsx; no Figma design): the white logo mark, pulsing softly,
 * centered on the page color. No pulsing for visitors who asked for reduced motion.
 * `label` ("Loading…") is what screen readers announce.
 */
export function LoadingScreen({ label }: { label: string }) {
  return (
    <div role="status" className="flex min-h-svh items-center justify-center bg-page">
      <span className="sr-only">{label}</span>
      <Image
        src="/logos/logo-mark.svg"
        alt=""
        width={92}
        height={80}
        priority
        className="h-20 w-[92px] animate-pulse motion-reduce:animate-none"
      />
    </div>
  );
}
