'use client';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { cn } from '../_lib/utils';
import { Button } from '../_components/ui/button';
import { ScopeCard } from '../_components/scope-card';
import { PORTAL_THEMES } from '../_components/portal-theme';
import {
LayoutDashboard, Newspaper, Calendar, HeartHandshake, Users2,
BookOpen, Sparkles, Images, Contact, Settings, LogOut,
} from 'lucide-react';
interface MemberScope {
member: { displayName: string | null };
chapter: { id: string; slug: string; name: string };
organization: { id: string; slug: string; name: string } | null;
}
const NAV = [
{ href: '/my', label: 'Dashboard', icon: },
{ href: '/my/digest', label: 'Digest', icon: },
{ href: '/my/ask', label: 'Ask AI', icon: },
{ href: '/my/events', label: 'Events', icon: },
{ href: '/my/seva', label: 'Seva & Points', icon: },
{ href: '/my/circles', label: 'Circles', icon: },
{ href: '/my/directory', label: 'Directory', icon: },
{ href: '/my/knowledge', label: 'Knowledge', icon: },
{ href: '/my/memories', label: 'Memories', icon: },
{ href: '/my/groups', label: 'My Groups', icon: },
{ href: '/my/settings', label: 'Settings', icon: },
];
export function MemberNav({ scope }: { scope?: MemberScope | null }) {
const pathname = usePathname();
const t = PORTAL_THEMES.emerald;
async function logout() {
await fetch('/api/my/logout', { method: 'POST' });
window.location.href = '/member-login';
}
return (
);
}