"use client"; import Link from "next/link"; import { motion } from "framer-motion"; import { cn } from "@/lib/utils"; interface CyberButtonProps { href?: string; onClick?: (e: React.MouseEvent) => void; children: React.ReactNode; className?: string; variant?: "primary" | "secondary"; disabled?: boolean; type?: "button" | "submit" | "reset"; } export function CyberButton({ href, onClick, children, className, variant = "primary", disabled = false, type = "button", }: CyberButtonProps) { const isPrimary = variant === "primary"; const content = ( {/* Энергетический блик */} {!disabled && (
)} {/* Улучшенные скобки-маркеры */}
</ {children} />
); const glowEffect = !disabled && (
); if (href && !disabled) { return ( onClick?.(e as any)} className="group relative inline-block" > {content} {glowEffect} ); } return ( ); }