import { Separator as SeparatorPrimitive } from "@base-ui/react/separator"
import { Switch as SwitchPrimitive } from "@base-ui/react/switch"
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle"
import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group"
import {
createContext,
useContext,
type ComponentProps,
type CSSProperties,
} from "react"
import { cn } from "./utils.ts"
export function Label({ className, ...props }: ComponentProps<"label">) {
return (
)
}
export function Switch({ className, ...props }: SwitchPrimitive.Root.Props) {
return (
)
}
const ToggleGroupContext = createContext({ spacing: 2 })
export function ToggleGroup({
className,
spacing = 2,
children,
...props
}: ToggleGroupPrimitive.Props & { spacing?: number }) {
return (
{children}
)
}
export function ToggleGroupItem({
className,
...props
}: TogglePrimitive.Props) {
const { spacing } = useContext(ToggleGroupContext)
return (
)
}
export function Separator({
className,
orientation = "horizontal",
...props
}: SeparatorPrimitive.Props) {
return (
)
}