'use client' import React from 'react' import { Icon } from "@/components/ui/icon" import { cn } from "@/lib/utils" const ProductCounterButton = ({ className }: { className?: string }) => { const [count, setCount] = React.useState(1) const handleIncreaseQuantity = () => { if (count < 10) { setCount(count + 1) } } const handleDecreaseQuantity = () => { if (count > 0) { setCount(count - 1) } } return (
{count}
) } export default ProductCounterButton