"use client"; interface Props { quantity: number; onChange: (q: number) => void; unitPrice: number; sizeLabel: string; max?: number; } export default function QuantityCounter({ quantity, onChange, unitPrice, sizeLabel, max = 200 }: Props) { const dec = () => onChange(Math.max(1, quantity - 1)); const inc = () => onChange(Math.min(max, quantity + 1)); return (