// @ts-nocheck "use client" import * as React from "react" import Image from "next/image" import Link from "next/link" import { useMDXComponent } from "next-contentlayer2/hooks" import { NpmCommands } from "types/unist" import { Event } from "@/lib/events" import { cn } from "@/lib/utils" import { useConfig } from "@/hooks/use-config" import { Callout } from "@/components/callout" import { CodeBlockWrapper } from "@/components/code-block-wrapper" import { ComponentExample } from "@/components/component-example" import { ComponentPreview } from "@/components/component-preview" import { ComponentSource } from "@/components/component-source" import { CopyButton, CopyNpmCommandButton } from "@/components/copy-button" import { FrameworkDocs } from "@/components/framework-docs" import { StyleWrapper } from "@/components/style-wrapper" import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/registry/new-york/ui/accordion" import { Alert, AlertDescription, AlertTitle, } from "@/registry/new-york/ui/alert" import { AspectRatio } from "@/registry/new-york/ui/aspect-ratio" import { Tabs, TabsContent, TabsList, TabsTrigger, } from "@/registry/new-york/ui/tabs" import { Style } from "@/registry/styles" const components = { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertTitle, AlertDescription, h1: ({ className, ...props }: React.HTMLAttributes) => (

), h2: ({ className, ...props }: React.HTMLAttributes) => (

), h3: ({ className, ...props }: React.HTMLAttributes) => (

), h4: ({ className, ...props }: React.HTMLAttributes) => (

), h5: ({ className, ...props }: React.HTMLAttributes) => (
), h6: ({ className, ...props }: React.HTMLAttributes) => (
), a: ({ className, ...props }: React.HTMLAttributes) => ( ), p: ({ className, ...props }: React.HTMLAttributes) => (

), ul: ({ className, ...props }: React.HTMLAttributes) => (

    ), ol: ({ className, ...props }: React.HTMLAttributes) => (
      ), li: ({ className, ...props }: React.HTMLAttributes) => (
    1. ), blockquote: ({ className, ...props }: React.HTMLAttributes) => (
      ), img: ({ className, alt, ...props }: React.ImgHTMLAttributes) => ( // eslint-disable-next-line @next/next/no-img-element {alt} ), hr: ({ ...props }: React.HTMLAttributes) => (
      ), table: ({ className, ...props }: React.HTMLAttributes) => (
      ), tr: ({ className, ...props }: React.HTMLAttributes) => ( ), th: ({ className, ...props }: React.HTMLAttributes) => (
      ), td: ({ className, ...props }: React.HTMLAttributes) => ( ), pre: ({ className, __rawString__, __npmCommand__, __yarnCommand__, __pnpmCommand__, __bunCommand__, __withMeta__, __src__, __event__, __style__, ...props }: React.HTMLAttributes & { __style__?: Style["name"] __rawString__?: string __withMeta__?: boolean __src__?: string __event__?: Event["name"] } & NpmCommands) => { return (
              {__rawString__ && !__npmCommand__ && (
                
              )}
              {__npmCommand__ &&
                __yarnCommand__ &&
                __pnpmCommand__ &&
                __bunCommand__ && (
                  
                )}
            
          )
        },
        code: ({ className, ...props }: React.HTMLAttributes) => (
          
        ),
        Image,
        Callout,
        ComponentPreview,
        ComponentExample,
        ComponentSource,
        AspectRatio,
        CodeBlockWrapper: ({ ...props }) => (
          
        ),
        Step: ({ className, ...props }: React.ComponentProps<"h3">) => (
          

      ), Steps: ({ ...props }) => (
      ), Tabs: ({ className, ...props }: React.ComponentProps) => ( ), TabsList: ({ className, ...props }: React.ComponentProps) => ( ), TabsTrigger: ({ className, ...props }: React.ComponentProps) => ( ), TabsContent: ({ className, ...props }: React.ComponentProps) => ( ), FrameworkDocs: ({ className, ...props }: React.ComponentProps) => ( ), Link: ({ className, ...props }: React.ComponentProps) => ( ), LinkedCard: ({ className, ...props }: React.ComponentProps) => ( ), } interface MdxProps { code: string } export function Mdx({ code }: MdxProps) { const [config] = useConfig() const Component = useMDXComponent(code, { style: config.style, }) return (
      ) }