import Image from "next/image" import { ComponentPreviewTabs } from "@/components/component-preview-tabs" import { ComponentSource } from "@/components/component-source" import { Index } from "@/registry/__index__" export function ComponentPreview({ name, type, className, align = "center", hideCode = false, ...props }: React.ComponentProps<"div"> & { name: string align?: "center" | "start" | "end" description?: string hideCode?: boolean type?: "block" | "component" | "example" }) { const Component = Index[name]?.component if (!Component) { return (
Component{" "}
{name}
{" "}
not found in registry.