mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
# 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.
17 lines
539 B
TypeScript
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>
|
|
);
|
|
}
|