import { formatIDR } from '@/utils' import { router } from '@inertiajs/react' import { isEmpty } from 'lodash' import { HiOutlineCash } from 'react-icons/hi' export default function BalanceBanner({ user }) { return (
router.get(route('transactions.deposit.index')) } >
Saldo
Rp {user.display_deposit}
poin {user.display_poin}
router.get(route('customer.customer-level.index')) } >
Rewards
{user.level.name}
{user.paylater_limit !== '' && (
Limit : {formatIDR(user.paylater_limit)}
)}
) }