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