"use client"; import { useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import Image from "next/image"; import { signOut } from "next-auth/react"; import { AdminSearchBar } from "@/features/admin/components/admin-search-bar"; const NAV_ITEMS: { href: string; label: string; icon: string }[] = [ { href: "/admin", label: "Dashboard", icon: "📊" }, { href: "/admin/trips", label: "Trips", icon: "🧭" }, { href: "/admin/users", label: "Users", icon: "đŸ‘Ĩ" }, { href: "/admin/verifications", label: "Verifikasi", icon: "đŸĒĒ" }, { href: "/admin/refunds", label: "Refund", icon: "â†Šī¸" }, { href: "/admin/payouts", label: "Payout", icon: "💸" }, { href: "/admin/audit-log", label: "Audit Log", icon: "📜" }, { href: "/admin/system", label: "System", icon: "âš™ī¸" }, ]; interface AdminSidebarProps { user: { name: string; email: string }; } export function AdminSidebar({ user }: AdminSidebarProps) { const pathname = usePathname(); const [open, setOpen] = useState(false); return ( <> {/* Mobile top bar */}
SeTrip Admin
{/* Mobile drawer backdrop */} {open && ( ); }