import React from "react"; const SkeletonCell = ({ width = "100%", height = 20, style = {} }) => (
); export const TenantTableSkeleton = ({ columns, rows = 5 }) => { return (
{columns.map((col) => ( ))} {[...Array(rows)].map((_, rowIdx) => ( {columns.map((col, colIdx) => ( ))} ))}
{col.label}
{/* Icon + text skeleton for first few columns */} {col.key === "name" && (
)} {col.key === "domainName" && (
)} {col.key === "contactName" && (
)} {col.key === "contactNumber" && ( )} {col.key === "status" && ( )}
); };