import IOSSpinner from "@/components/ui/IOSSpinner";
import { getServerLanguage } from "@/lib/i18n/server";
import { translateCommon } from "@/lib/i18n/translate";

export default async function Loading() {
  const lang = await getServerLanguage();

  return (
    <div className="flex h-screen w-full flex-col items-center justify-center gap-3 bg-background">
      <IOSSpinner size={32} color="#007aff" />
      <span className="text-sm text-neutral-500">{translateCommon(lang, "common.loading")}</span>
    </div>
  );
}
