Files
Stirling-PDF/frontend/editor/src/portal/components/infrastructure/TableSkeleton.tsx
T
James Brunton 11ba3814e5 Restructure Portal code to be inside Editor (#6857)
# Description of Changes
We don't have any strong reasons to keep the Portal as a separate Vite
app, and it needs access to so many things from the Editor that it no
longer makes sense to keep them separate. This PR moves the Portal code
to have direct access to the Editor code and gets rid of the shared
folder.
2026-07-03 13:20:02 +00:00

17 lines
539 B
TypeScript

import { Skeleton } from "@app/ui";
/** Placeholder grid shown inside a table card while rows are loading. */
export function TableSkeleton({ rows, cols }: { rows: number; cols: number }) {
return (
<div className="portal-infra__table-skel" aria-hidden>
{Array.from({ length: rows }).map((_, r) => (
<div key={r} className="portal-infra__table-skel-row">
{Array.from({ length: cols }).map((_, c) => (
<Skeleton key={c} height="0.75rem" />
))}
</div>
))}
</div>
);
}