"use client"; import type { Toggle as TogglePrimitive } from "@base-ui/react/toggle"; import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group"; import type { VariantProps } from "class-variance-authority"; import * as React from "react"; import { cn } from "~/lib/utils"; import { Separator } from "~/components/ui/separator"; import { Toggle as ToggleComponent, type toggleVariants } from "~/components/ui/toggle"; const ToggleGroupContext = React.createContext>({ size: "default", variant: "default", }); function ToggleGroup({ className, variant = "default", size = "default", orientation = "horizontal", children, ...props }: ToggleGroupPrimitive.Props & VariantProps) { return ( {children} ); } function Toggle({ className, children, variant, size, ...props }: TogglePrimitive.Props & VariantProps) { const context = React.useContext(ToggleGroupContext); const resolvedVariant = variant ?? context.variant; const resolvedSize = size ?? context.size; return ( {children} ); } function ToggleGroupSeparator({ className, orientation = "vertical", ...props }: { className?: string; } & React.ComponentProps) { return ( ); } export { ToggleGroup, Toggle, Toggle as ToggleGroupItem, ToggleGroupSeparator };