"use client" import * as React from "react" import Link from "next/link" import { Popover, PopoverContent, PopoverTrigger, } from "@/examples/base/ui/popover" import { IconAlertCircle } from "@tabler/icons-react" import { cn } from "@/lib/utils" import { LanguageProvider, LanguageSelector, useLanguageContext, useTranslation, type Translations, } from "@/components/language-selector" import { DirectionProvider as BaseDirectionProvider } from "@/registry/bases/base/ui/direction" import { DirectionProvider as RadixDirectionProvider } from "@/registry/bases/radix/ui/direction" import { Button } from "@/registry/new-york-v4/ui/button" import { Separator } from "@/registry/new-york-v4/ui/separator" export function ComponentPreviewTabs({ className, previewClassName, align = "center", hideCode = false, chromeLessOnMobile = false, component, source, sourcePreview, direction = "ltr", styleName, ...props }: React.ComponentProps<"div"> & { previewClassName?: string align?: "center" | "start" | "end" hideCode?: boolean chromeLessOnMobile?: boolean component: React.ReactNode source: React.ReactNode sourcePreview?: React.ReactNode direction?: "ltr" | "rtl" styleName?: string }) { const [isMobileCodeVisible, setIsMobileCodeVisible] = React.useState(false) const base = styleName?.split("-")[0] return (
{`// You will notice this example uses dir and data-lang attributes.
// This is because this site is not RTL by default.
// In your application, you won't need these.`}
{"// See the "}
RTL guide
{" for more information."}