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('customer.deposit.index'))} >
Saldo
Rp {user.display_deposit}
poin {user.display_poin}
{/* */}
Rewards
{user.level.name}
{user.paylater_limit !== '' && (
Limit : {formatIDR(user.paylater_limit)}
)}
) }