import { forwardRef, type ButtonHTMLAttributes } from 'react'
import { cn } from '../../lib/utils'
export type ButtonVariant = 'primary' | 'ghost' | 'outline'
export type ButtonSize = 'sm' | 'md' | 'icon'
export type ButtonProps = ButtonHTMLAttributes & {
variant?: ButtonVariant
size?: ButtonSize
}
const variants: Record = {
primary: 'bg-accent text-on-accent hover:bg-accent-strong',
ghost: 'bg-transparent text-primary hover:bg-primary-soft',
outline: 'border border-border bg-surface text-primary hover:bg-primary-soft',
}
const sizes: Record = {
sm: 'h-8 px-3 text-sm',
md: 'h-10 px-4 text-sm',
icon: 'size-9',
}
export const Button = forwardRef(
({ className, variant = 'ghost', size = 'md', type = 'button', ...props }, ref) => {
return (
)
},
)
Button.displayName = 'Button'