// src/components/Buttons/ButtonGreen.jsx
// Zöld gomb komponens (ButtonGreen)

import { motion } from "framer-motion"

export default function ButtonGreen({ text, type, onClick, width }) {
  const widthClass = width ? width : "w-full"

  return (
    <motion.button
      whileHover={{ scale: 1.05 }}
      whileTap={{ scale: 0.95 }}
      type={type}
      onClick={onClick}
      className={`${widthClass} bg-button-green text-white py-3 rounded-lg hover:bg-button-green-hover transition shadow-md font-semibold text-lg`}
    >
      {text}
    </motion.button>
  )
}
