import Divider from '@/core/components/elements/Divider/Divider' import Link from '@/core/components/elements/Link/Link' import AppLayout from '@/core/components/layouts/AppLayout' import useAuth from '@/core/hooks/useAuth' import { deleteAuth } from '@/core/utils/auth' import IsAuth from '@/lib/auth/components/IsAuth' import { ChevronRightIcon, UserIcon } from '@heroicons/react/24/solid' import { useRouter } from 'next/router' export default function Menu() { const auth = useAuth() const router = useRouter() const logout = () => { deleteAuth() router.push('/login') } return (
{auth?.name}
{auth?.company &&
Akun Bisnis
} {!auth?.company &&
Akun Individu
}
Aktivitas Pembelian
Daftar Transaksi Invoice & Faktur Pajak Wishlist
Pusat Bantuan
Customer Support
Pengaturan Akun
Daftar Alamat
) } const MenuHeader = ({ children, ...props }) => (
{children}
) const LinkItem = ({ children, ...props }) => ( {children}
)