import { ArrowLeftIcon, PanelLeftIcon } from 'lucide-react'; import { useState } from 'react'; import { Button } from '#/components/atoms/button.jsx'; import { Link } from '#/components/atoms/link.jsx'; import { Sidebar } from '#/components/organisms/sidebar.jsx'; /** * The console frame: the account rail beside a wide content column headed by * the page's title, one-line summary, and a single light action pill. A * subpage passes `page.back` to hang a return link above the title. */ export function Shell({ account, sections, current, page, onNavigate, onSignOut, children, }) { const [navOpen, setNavOpen] = useState(false); return (
{account.handle ? `@${account.handle}` : account.did}
{page.back && ( {page.back.label} )}

{page.title}

{page.titleBadge}
{page.sub && (

{page.sub}

)}
{page.action && ( )}
{children}
); }