'use client';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { cn } from '../_lib/utils';
import { Separator } from '../_components/ui/separator';
import { Button } from '../_components/ui/button';
import { LayoutDashboard, Settings, Users, LogOut } from 'lucide-react';
const NAV = [
{ href: '/my', label: 'Dashboard', icon: },
{ href: '/my/groups', label: 'My Groups', icon: },
{ href: '/my/settings', label: 'Settings', icon: },
];
export function MemberNav() {
const pathname = usePathname();
async function logout() {
await fetch('/api/my/logout', { method: 'POST' });
window.location.href = '/member-login';
}
return (
);
}