import { Dialog } from '@base-ui/react/dialog'; import { Avatar } from '#/components/atoms/avatar.jsx'; import { Button } from '#/components/atoms/button.jsx'; import { Link } from '#/components/atoms/link.jsx'; import { cn } from '#/lib/utils.js'; /** * The account rail: a branded header, the section links with their counts, and * a sign-out. Always present on desktop, and a sheet on small screens driven * by `open` / `onOpenChange`. */ export function Sidebar({ account, sections, current, onNavigate, onSignOut, open, onOpenChange, }) { const initial = (account.displayName || account.handle || account.did) .slice(0, 1) .toUpperCase(); const rail = (
{initial} } />
{account.handle ? `@${account.handle}` : account.did}
); return ( <> {rail} ); }