import * as React from "react" import { View } from "@tarojs/components" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" import { Separator } from "@/components/ui/separator" const buttonGroupVariants = cva( "flex w-fit items-stretch", { variants: { orientation: { horizontal: "[&>view:nth-child(n+2)]:rounded-l-none [&>view:nth-child(n+2)]:border-l-0 [&>view:nth-last-child(n+2)]:rounded-r-none", vertical: "flex-col [&>view:nth-child(n+2)]:rounded-t-none [&>view:nth-child(n+2)]:border-t-0 [&>view:nth-last-child(n+2)]:rounded-b-none", }, }, defaultVariants: { orientation: "horizontal", }, } ) function ButtonGroup({ className, orientation, ...props }: React.ComponentPropsWithoutRef & VariantProps) { return ( ) } function ButtonGroupText({ className, asChild = false, ...props }: React.ComponentPropsWithoutRef & { asChild?: boolean }) { return ( ) } function ButtonGroupSeparator({ className, orientation = "vertical", ...props }: React.ComponentPropsWithoutRef) { return ( ) } export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, }