From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 17 Feb 2023 17:07:50 +0700 Subject: Refactor --- src2/pages/my/menu.js | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 src2/pages/my/menu.js (limited to 'src2/pages/my/menu.js') diff --git a/src2/pages/my/menu.js b/src2/pages/my/menu.js new file mode 100644 index 00000000..ae6c2af8 --- /dev/null +++ b/src2/pages/my/menu.js @@ -0,0 +1,82 @@ + +import AppBar from "@/components/layouts/AppBar"; +import Layout from "@/components/layouts/Layout"; +import Link from "@/components/elements/Link"; +import { useAuth } from "@/core/utils/auth"; +import { + ArrowRightOnRectangleIcon, + ChatBubbleLeftRightIcon, + ChevronRightIcon, + MapIcon, + PaperClipIcon, + PencilSquareIcon, + QuestionMarkCircleIcon, + ReceiptPercentIcon, + UserIcon, + HeartIcon +} from "@heroicons/react/24/outline"; +import WithAuth from "@/components/auth/WithAuth"; + +const Menu = ({ icon, name, url }) => { + return ( + + + { icon } + { name } + + + + ); +}; + +export default function MyMenu() { + const [auth] = useAuth(); + + return ( + + + + +
+
+
+ +
+
+

{ auth?.name }

+ { auth?.company ? ( +
Akun Bisnis
+ ) : ( +
Akun Individu
+ ) } +
+
+ + + +
+ +
+

Aktivitas Pembelian

+
+ } name="Daftar Transaksi" url="/my/transactions" /> + } name="Invoice & Faktur Pajak" url="/my/invoices" /> + } name="Wishlist" url="/my/wishlist" /> +
+ +

Pusat Bantuan

+
+ } name="Layanan Pelanggan" url="/" /> + } name="F.A.Q" url="/faqs" /> +
+ +

Pengaturan Akun

+
+ } name="Daftar Alamat" url="/my/address" /> + } name="Keluar Akun" url="/logout" /> +
+
+
+
+ ); +} \ No newline at end of file -- cgit v1.2.3