import { formatIDR } from '@/utils' import { router } from '@inertiajs/react' import { HiMinusCircle, HiPlusCircle, HiTrash } from 'react-icons/hi2' export default function VoucherCard({ item: { voucher, quantity } }) { const handleDelete = () => { router.post(route('cart.store', { voucher: voucher, param: 'delete' })) } const handleAdd = () => { router.post(route('cart.store', { voucher: voucher, param: 'add' })) } const handleSub = () => { router.post(route('cart.store', { voucher: voucher, param: 'sub' })) } return (