import { formatIDR } from '@/utils' import { router } from '@inertiajs/react' import { useState } from 'react' import BottomSheet from '../Components/BottomSheet' const ExchangeModal = ({ show, voucher, setShow }) => { return ( setShow(false)}>
{voucher.location_profile.name}
{voucher.location_profile.display_note}
{formatIDR(voucher.location_profile.price_poin)}{' '} poin{' '}
{voucher.location_profile.quota}
{voucher.location_profile.display_expired}
router.get( route('customer.poin.exchange.process', voucher) ) } > Tukarkan
setShow(false)} > Batal
) } export default function VoucherCard({ voucher }) { const [show, setShow] = useState(false) return ( <>
setShow(true)} >
{voucher.location_profile.location.name}
{voucher.location_profile.display_note}
{formatIDR(voucher.validate_price_poin)} poin
{voucher.location_profile.quota}
{voucher.location_profile.diplay_expired}
) }