import PageContainer from '@/components/layout/page-container';
import { Card, CardContent, CardHeader } from '@/components/ui/card';
import { Skeleton } from '@/components/ui/skeleton';

export default function Loading() {
  return (
    <PageContainer pageTitle='รอตรวจสอบ' pageDescription='กำลังโหลดรายการอบรมที่ HRD ต้องตรวจสอบ...'>
      <div className='space-y-4'>
        <div className='flex gap-2'>
          <Skeleton className='h-10 w-36' />
          <Skeleton className='h-10 w-40' />
          <Skeleton className='h-10 w-32' />
        </div>
        <Card>
          <CardHeader>
            <Skeleton className='h-10 w-full' />
          </CardHeader>
          <CardContent className='space-y-3'>
            {Array.from({ length: 6 }).map((_, index) => (
              <Skeleton key={index} className='h-12 w-full' />
            ))}
          </CardContent>
        </Card>
      </div>
    </PageContainer>
  );
}
