import * as React from "react" import Image from "next/image" import { getRegistryComponent } from "@/lib/registry" import { ComponentPreviewTabs } from "@/components/component-preview-tabs" import { ComponentSource } from "@/components/component-source" export function ComponentPreview({ name, type, className, previewClassName, align = "center", hideCode = false, chromeLessOnMobile = false, styleName = "new-york-v4", direction = "ltr", caption, ...props }: React.ComponentProps<"div"> & { name: string styleName?: string align?: "center" | "start" | "end" description?: string hideCode?: boolean type?: "block" | "component" | "example" chromeLessOnMobile?: boolean previewClassName?: string direction?: "ltr" | "rtl" caption?: string }) { if (type === "block") { const content = (
Component{" "}
{name}
{" "}
not found in registry.