import { formatIDR } from '@/utils' import { HiShare } from 'react-icons/hi2' export default function VoucherCard({ item: { voucher, quantity } }) { return (
{voucher.location.name}
{ navigator.share({ title: 'Hello World', text: 'Hai Hai', }) }} >
{voucher.profile}
IDR {formatIDR(voucher.price)}
{+voucher.discount !== 0 && (
{voucher.discount}%
{formatIDR(voucher.display_price)}
)}
{voucher.display_quota}
{voucher.display_expired}
{formatIDR(voucher.price)}
x
{quantity}
{formatIDR(+voucher.price * +quantity)}
Username :{' '} {voucher.username}
Password :{' '} {voucher.password}
) }