"use client"; import React, { forwardRef } from "react"; import { cn } from "../../utils/cn"; export interface ButtonProps extends React.ButtonHTMLAttributes { variant?: "primary" | "secondary" | "outline" | "destructive" | "ghost"; size?: "sm" | "md" | "lg"; loading?: boolean; } export const Button = forwardRef( ( { className, variant = "primary", size = "md", loading, children, disabled, ...props }, ref ) => { const baseClasses = "inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none"; const variants = { primary: "bg-blue-600 text-white hover:bg-blue-700", secondary: "bg-gray-200 text-gray-900 hover:bg-gray-300", outline: "border border-gray-300 bg-white text-gray-700 hover:bg-gray-50", destructive: "bg-red-600 text-white hover:bg-red-700", ghost: "hover:bg-gray-100 text-gray-700", }; const sizes = { sm: "h-8 px-3 text-sm", md: "h-10 px-4 py-2", lg: "h-12 px-6 text-lg", }; return ( ); } ); Button.displayName = "Button";