import type { CSSProperties } from 'react'; // ── Base shimmer block ──────────────────────────────────────── interface SkelProps { w?: string | number; h?: number; r?: number; mb?: number; style?: CSSProperties; } export function Skel({ w = '100%', h = 14, r = 4, mb = 0, style }: SkelProps) { return (
); } // ── Dashboard skeleton ──────────────────────────────────────── export function DashboardSkeleton() { return (
{[0, 1, 2, 3].map((i) => (
))}
); } // ── PageScanner skeleton ────────────────────────────────────── export function PageScannerSkeleton() { return (
{['Page / Post', 'Type', 'Score', 'Issues', 'Last Scanned', ''].map((h, i) => ( ))} {[0, 1, 2, 3, 4, 5].map((i) => ( ))}
{h}
); } // ── Report skeleton ─────────────────────────────────────────── export function ReportSkeleton() { return (
{[0, 1, 2, 3, 4].map((i) => (
))}
{['#', 'Page URL', 'Grade', 'Score', 'Issues', 'Last Scanned', ''].map((col, i) => ( ))} {[0, 1, 2, 3, 4].map((i) => ( ))}
{col}
{i + 1}
); } // ── Settings skeleton ───────────────────────────────────────── export function SettingsSkeleton() { return (
{[0, 1, 2, 3, 4].map((i) => (
))}
); } // ── Widget configurator skeleton ────────────────────────────── export function WidgetSkeleton() { return (
{[0, 1, 2].map((i) => (
))}
{[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((i) => (
))}
); }