import GiteaIcon from '@/assets/GiteaIcon' import Logo from '@/assets/Logo' import { Sheet, SheetContent, SheetDescription, SheetTitle } from '@/components/ui/sheet' import { usePrimaryPage } from '@/PageManager' import { useNostr } from '@/providers/NostrProvider' import { VisuallyHidden } from '@radix-ui/react-visually-hidden' import AccountButton from '../Sidebar/AccountButton' import BookmarkButton from '../Sidebar/BookmarkButton' import ChatButton from '../Sidebar/ChatButton' import HomeButton from '../Sidebar/HomeButton' import LogoutButton from '../Sidebar/LogoutButton' import NotificationsButton from '../Sidebar/NotificationButton' import ProfileButton from '../Sidebar/ProfileButton' import SettingsButton from '../Sidebar/SettingsButton' type SidebarDrawerProps = { open: boolean onOpenChange: (open: boolean) => void } export default function SidebarDrawer({ open, onOpenChange }: SidebarDrawerProps) { const { pubkey } = useNostr() const { navigate } = usePrimaryPage() const handleItemClick = () => { onOpenChange(false) } return ( Navigation Menu App navigation and account menu
{/* Account at top */}
{/* Navigation items in the middle */}
{pubkey && (
)}
{pubkey && (
)}
{pubkey && }
{/* Logo and version at bottom */}
v{import.meta.env.APP_VERSION}
) }