import React from "react"; import { cn } from "../../utils/cn"; import { Loader2 } from "lucide-react"; import { motion } from "framer-motion"; const buttonVariants = { primary: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-md shadow-primary/20 hover:shadow-primary/40 active:scale-95", secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 active:scale-95", ghost: "hover:bg-accent/10 hover:text-accent active:scale-95", danger: "bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-md shadow-destructive/20 hover:shadow-destructive/40 active:scale-95", outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground active:scale-95" }; const buttonSizes = { sm: "h-9 px-3 text-sm", md: "h-11 px-5 py-2 text-base", lg: "h-12 px-8 text-lg", icon: "h-10 w-10", }; export const Button = React.forwardRef( ( { className, variant = "primary", size = "md", isLoading = false, disabled, children, ...props }, ref ) => { return ( {isLoading && } {children} {/* Ripple/Glow effect placeholder */} ); } ); Button.displayName = "Button";