"use client"; import { ReactNode } from "react"; interface GlowButtonProps { href: string; children: ReactNode; variant?: "primary" | "secondary"; } export default function GlowButton({ href, children, variant = "primary", }: GlowButtonProps) { const handleClick = (e: React.MouseEvent) => { e.preventDefault(); const targetId = href.replace("#", ""); const element = document.getElementById(targetId); if (element) { element.scrollIntoView({ behavior: "smooth", block: "start", }); } }; if (variant === "primary") { return ( {children} ); } // Variante secondaire (bleu) return ( {children} ); }