"use client" import { cn } from "cn" import { composeRenderProps, Switch as SwitchPrimitive, type SwitchProps as SwitchPrimitiveProps, } from "react-aria-components" function Switch({ className, size = "default", children, ...props }: SwitchPrimitiveProps & { size?: "sm" | "default" }) { return ( {composeRenderProps(children, (children, { isSelected }) => ( <> {children} ))} ) } export { Switch }