"use client"; import { motion, HTMLMotionProps } from "framer-motion"; import { ReactNode } from "react"; // Extendemos de HTMLMotionProps para heredar todos los atributos nativos de un botón (incluyendo disabled) interface ButtonProps extends HTMLMotionProps<"button"> { children: ReactNode; variant?: "primary" | "outline" | "ocean"; className?: string; } export const Button = ({ children, variant = "primary", className = "", disabled, ...props }: ButtonProps) => { const variants = { primary: "bg-navy text-white hover:bg-ocean disabled:bg-navy/50", outline: "border-2 border-navy text-navy hover:bg-navy hover:text-white disabled:opacity-50", ocean: "bg-ocean text-white hover:bg-sky disabled:bg-ocean/50", }; return ( {children} ); };