import Link from '@/core/components/elements/Link/Link'; import { useRouter } from 'next/router'; import ImageNext from 'next/image'; import whatsappUrl from '@/core/utils/whatsappUrl'; import { deleteAuth } from '@/core/utils/auth'; import useAuth from '@/core/hooks/useAuth'; const Menu = () => { const router = useRouter(); const auth = useAuth(); const routeStartWith = (route) => router.pathname.startsWith(route); const logout = async () => { deleteAuth().then(() => { router.push('/login'); }); }; return (
Menu

Daftar Quotation

Daftar Transaksi

Daftar Pengiriman

Invoice & Faktur Pajak

{auth && (auth?.partnerTempo.toLowerCase().includes('tempo') || auth.tempoProgres == 'review') && (

Pembayaran Tempo

)}

Wishlist

Pusat Bantuan

Layanan Pelanggan

Pengaturan Akun

Daftar Alamat

Profil Saya

); }; const LinkItem = ({ children, ...props }) => ( {children} ); export default Menu;