'use client';

import { getClientShellMessages } from '@/lib/localization/client-messages';
import { useParams } from 'next/navigation';
import { LoadingSkeleton, StateShell } from './StateShell';

export function LocalizedLoading() {
  const params = useParams<{ locale?: string }>();
  const messages = getClientShellMessages(params?.locale);
  return (
    <StateShell title={messages.states.loadingTitle} body={messages.states.loadingBody} status>
      <LoadingSkeleton />
    </StateShell>
  );
}
