'use client' import { forwardRef } from 'react' import { motion } from 'framer-motion' import { cn } from '@/lib/utils' export interface ButtonProps extends React.ButtonHTMLAttributes { variant?: 'primary' | 'secondary' | 'ghost' | 'github' size?: 'sm' | 'md' | 'lg' loading?: boolean icon?: React.ReactNode } const Button = forwardRef( ({ className, variant = 'primary', size = 'md', loading, icon, children, disabled, ...props }, ref) => { const variants = { primary: 'bg-gradient-to-r from-accent to-accent-hover text-white hover:shadow-lg hover:shadow-accent/20', secondary: 'bg-surface border border-border text-foreground hover:bg-surface-secondary', ghost: 'bg-transparent text-foreground hover:bg-surface/50', github: 'bg-foreground text-background hover:bg-foreground/90 shadow-lg' } const sizes = { sm: 'h-9 px-4 text-sm', md: 'h-12 px-6 text-base', lg: 'h-14 px-8 text-lg' } return ( {loading ? ( <> Loading... ) : ( <> {icon} {children} )} ) } ) Button.displayName = 'Button' export { Button }