import { Skeleton } from '@theme/components';

export const PaymentGridSkeleton = () => (
  <div
    className="grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3"
    aria-busy="true"
  >
    {Array.from({ length: 6 }).map((_, i) => (
      <div
        key={i}
        className="flex min-h-[5rem] flex-col justify-center gap-2 rounded-md border border-gray-300 bg-white px-4 py-3"
      >
        <div className="flex items-center justify-between">
          <Skeleton className="h-5 w-5" />
          <Skeleton className="h-4 w-4 rounded-full" />
        </div>
        <Skeleton className="h-4 w-3/4" />
      </div>
    ))}
  </div>
);

export default PaymentGridSkeleton;
