import { usePage, router, Link } from '@inertiajs/react' import { useState } from 'react' import { HiOutlineQuestionMarkCircle } from 'react-icons/hi2' export default function HeaderTrx({ enable = 'deposit' }) { const { props: { auth: { user }, }, } = usePage() const [popover, setPopover] = useState(false) return ( <>
{user.fullname}
Rp {user.display_deposit}
router.get(route('transactions.deposit.topup')) } > Top Up
{user.display_poin} poin
setPopover(!popover)}>
{user.poin_expired_text}
Deposit Pembelian Poin
) }