import { useUIStore } from "../../stores/ui"; import { useFeedStore } from "../../stores/feed"; import { useUserStore } from "../../stores/user"; import { useNotificationsStore } from "../../stores/notifications"; import { useDraftStore } from "../../stores/drafts"; import { useBookmarkStore } from "../../stores/bookmark"; import { getNDK } from "../../lib/nostr"; import { AccountSwitcher } from "./AccountSwitcher"; import pkg from "../../../package.json"; const NAV_ITEMS = [ { id: "feed" as const, label: "feed", icon: "◈" }, { id: "articles" as const, label: "articles", icon: "☰" }, { id: "search" as const, label: "search", icon: "⌕" }, { id: "bookmarks" as const, label: "bookmarks", icon: "▪" }, { id: "dm" as const, label: "messages", icon: "✉" }, { id: "notifications" as const, label: "notifications", icon: "🔔" }, { id: "zaps" as const, label: "zaps", icon: "⚡" }, { id: "relays" as const, label: "relays", icon: "⟐" }, { id: "settings" as const, label: "settings", icon: "⚙" }, { id: "about" as const, label: "support", icon: "♥" }, ] as const; export function Sidebar() { const { currentView, setView, sidebarCollapsed, toggleSidebar } = useUIStore(); const { connected } = useFeedStore(); const { loggedIn } = useUserStore(); const { unreadCount: notifUnread, dmUnreadCount } = useNotificationsStore(); const draftCount = useDraftStore((s) => s.drafts.length); const bookmarkUnread = useBookmarkStore((s) => s.unreadArticleCount()); const c = sidebarCollapsed; return ( ); }