import React from "react";

const CompanyTableSkeleton = ({ rows = 5 }) => {
  return (
    <tbody className="divide-y divide-gray-200">
      {Array.from({ length: rows }).map((_, index) => (
        <tr key={index} className="animate-pulse">
          <td className="px-6 py-4">
            <div className="h-4 bg-gray-200 rounded-full "></div>
          </td>
          <td className="px-6 py-4">
            <div className="h-4 bg-gray-200 rounded-full "></div>
          </td>
          <td className="px-6 py-4">
            <div className="h-4 bg-gray-200 rounded-full "></div>
          </td>
          <td className="px-6 py-4 text-end">
            <div className="h-4 bg-gray-200 rounded-full "></div>
          </td>
        </tr>
      ))}
    </tbody>
  );
};

export default CompanyTableSkeleton;
