// Component con cho các nút hành động (số lượng, thêm vào giỏ)
const ProductActions = ({ quantity, setQuantity, onAddToCart, itemCode, config }) => {
// Dựa vào config.lang để hiển thị song ngữ
const addToCartText = config?.lang === 'vi' ? 'Thêm vào giỏ' : 'Add to Cart';
return (
{addToCartText}>}
onClick={() => onAddToCart(itemCode, quantity)}
variant='danger'
type='button'
style={{
marginLeft: '15px', // Giảm khoảng cách
padding: '6px 12px', // Giảm padding để nút nhỏ gọn hơn
fontSize: '0.9rem', // Giảm kích thước chữ
height: '31px', // Đồng bộ chiều cao với nút số lượng
marginTop:'-5px'
}}
tabIndex={0}
/>