import type { ReactNode } from "react"; /** * One labelled row of the sidebar Live Preview ("Color", "Button/Label", ...). * * The wrapper exposes the active layout as `data-preview-layout` so the shell * stylesheet can keep wide single-row layouts (pill and grid) scrolling inside * the panel instead of leaking out of the preview stage. */ export type PreviewPanelProps = { label: ReactNode; layout: string; children: ReactNode; }; export function PreviewPanel({ label, layout, children }: PreviewPanelProps) { return (
{label}
{children}
); } export default PreviewPanel;