mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import React from "react";
|
|
|
|
import { Card } from "@/components/shadcn/card/card";
|
|
import { Skeleton } from "@/components/shadcn/skeleton/skeleton";
|
|
|
|
export const SkeletonTableFindings = () => {
|
|
const columns = 7;
|
|
const rows = 4;
|
|
|
|
return (
|
|
<Card variant="base" padding="md" className="flex flex-col gap-4">
|
|
{/* Table headers */}
|
|
<div className="flex gap-4">
|
|
{Array.from({ length: columns }).map((_, index) => (
|
|
<Skeleton
|
|
key={`header-${index}`}
|
|
className="h-8"
|
|
style={{ width: `${100 / columns}%` }}
|
|
/>
|
|
))}
|
|
</div>
|
|
|
|
{/* Table body */}
|
|
<div className="flex flex-col gap-3">
|
|
{Array.from({ length: rows }).map((_, rowIndex) => (
|
|
<div key={`row-${rowIndex}`} className="flex gap-4">
|
|
{Array.from({ length: columns }).map((_, colIndex) => (
|
|
<Skeleton
|
|
key={`cell-${rowIndex}-${colIndex}`}
|
|
className="h-12"
|
|
style={{ width: `${100 / columns}%` }}
|
|
/>
|
|
))}
|
|
</div>
|
|
))}
|
|
</div>
|
|
</Card>
|
|
);
|
|
};
|