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