import * as React from "react" import { Slot } from "@radix-ui/react-slot" import { cn } from "../../lib/utils" export interface ButtonProps extends React.ButtonHTMLAttributes { asChild?: boolean; } const Button = React.forwardRef( ({ className, asChild = false, ...props }, ref) => { const Comp = asChild ? Slot : "button" return ( ) } ) Button.displayName = "Button" export { Button }