import * as TabsPrimitive from "@radix-ui/react-tabs"; import { cva, VariantProps } from "class-variance-authority"; import * as React from "react"; import { ScrollArea, ScrollBar } from "@sparkle/components/"; import { Button } from "@sparkle/components/Button"; import { LinkWrapperProps } from "@sparkle/components/LinkWrapper"; import { cn } from "@sparkle/lib/utils"; const Tabs = TabsPrimitive.Root; const tabsListVariants = cva("s-inline-flex s-h-11 s-gap-2", { variants: { size: { full: "s-w-full", }, border: { true: "s-border-b s-border-border dark:s-border-border-night", }, }, defaultVariants: { size: "full", border: true, }, }); type TabsListProps = React.ComponentPropsWithoutRef & VariantProps; const TabsList = React.forwardRef< React.ElementRef, TabsListProps >(({ className, size, border, ...props }, ref) => ( )); TabsList.displayName = TabsPrimitive.List.displayName; const TabsTrigger = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & Partial< Pick< React.ComponentProps, "label" | "tooltip" | "icon" | "isCounter" | "counterValue" | "variant" > > & { isLoading?: boolean; } & Omit >( ( { className, label, tooltip, icon, href, target, rel, replace, shallow, disabled, variant = "ghost", isCounter = false, counterValue, ...props }, ref ) => { return (