"use client"; import { cn } from "@prototype/lib/utils"; import type { ReactNode } from "react"; export type DesignExplorationVariantPreviewLayout = "inline" | "overlay"; export type DesignExplorationVariantPreviewShellProps = { /** Use `overlay` when the variant uses absolute positioning on the live page. */ layout?: DesignExplorationVariantPreviewLayout; children: ReactNode; className?: string; }; /** * Hosts a variant inside the design-brief preview card. Overlay layouts get a * positioned shell so absolutely placed controls remain visible in the sidebar. */ export function DesignExplorationVariantPreviewShell({ layout = "inline", children, className, }: DesignExplorationVariantPreviewShellProps) { const isOverlay = layout === "overlay"; return (
{isOverlay ? (
) : null} {children}
); }