import { formatIDR } from '@/utils' export default function VoucherCard({ voucher }) { return (
{voucher.location.name}
{voucher.location.name}
IDR {formatIDR(voucher.price)}
{+voucher.discount !== 0 && (
{voucher.discount}%
{formatIDR(voucher.display_price)}
)}
{voucher.display_quota}
{voucher.display_expired}
) }