// components/generic/PlacementSkeleton.jsx import { cn } from "@/lib/utils"; import { PLACEMENT_LAYOUTS } from "@/data/placementLayouts.data"; // ── Block renderers ──────────────────────────────────────────────────────── const BAR_HEIGHT = { sm: "h-4", md: "h-8", lg: "h-14", xl: "h-16", }; function HighlightTag({ label }) { return ( {label} ); } function Nav() { return (
); } function Bar({ size = "md", highlight, label }) { return (
{highlight && label && }
); } function Filters() { return (
{[1, 2, 3].map((i) => ( ))}
); } function Grid({ label }) { return (
{[1, 2, 3, 4].map((i) => ( ))}
{label && {label}}
); } function ListBlock({ label }) { return (
{[1, 2].map((i) => ( ))} {label && {label}}
); } function Row({ columns = [] }) { return (
{columns.map((col, i) => (
{col.highlight ? ( ) : ( col.label && ( {col.label} ) )}
))}
); } function Block({ block }) { switch (block.kind) { case "nav": return