import { useState } from "react"; export default function BuyButton() { const [quantity, setQuantity] = useState(1); const getButtonColor = () => { switch (quantity) { case 2: return "bg-yellow-500 hover:bg-yellow-600"; case 4: return "bg-red-500 hover:bg-red-600"; default: return "bg-gray-500 hover:bg-gray-600"; } }; return (
{[1, 2, 3, 4, 5].map((num) => ( ))}
); }