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