import { deleteAuth } from '@/core/utils/auth'; import Link from '../Link/Link'; import { useRouter } from 'next/router'; import { signOut, useSession } from 'next-auth/react'; import useAuth from '@/core/hooks/useAuth'; const NavbarUserDropdown = () => { const router = useRouter(); const atuh = useAuth(); const logout = async () => { deleteAuth().then(() => { router.push('/login'); }); }; return (
Profil Saya Daftar Quotation Daftar Transaksi Daftar Pengiriman Invoice & Faktur Pajak {atuh && atuh.partnerTempo && (atuh.partnerTempo?.toLowerCase().includes('tempo') || atuh.tempoProgres === 'review') && ( Pembayaran Tempo )} Wishlist Daftar Alamat {!atuh?.external && ( Dashboard Recomendation )}
); }; export default NavbarUserDropdown;