// src/components/Inputs/InputBox.jsx
// Gomb komponens

import { motion } from "framer-motion"

export default function Button({ 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-secondary text-white py-3 rounded-lg hover:bg-button-secondary-hover transition shadow-md font-semibold text-lg`}
    >
      {text}
    </motion.button>
  )
}
