setOpen(false)}
aria-hidden="true"
style={{
position: "fixed",
top: 0,
left: 0,
right: 0,
bottom: 0,
background: "rgba(0,0,0,0.5)",
zIndex: 40,
}}
/>
)}
{/* Drawer panel */}
>
);
}
/* ══════════════════════════════════════════
SidebarContent
══════════════════════════════════════════ */
function SidebarContent({
pathname,
permissions,
user,
compact,
}: {
pathname: string;
permissions: string[];
user: ReturnType
;
compact: boolean;
}) {
return (
<>
{compact ? : }
{compact ? (
{(user?.name ?? user?.userName ?? "—").slice(0, 1)}
) : (
{user?.name ?? user?.userName ?? "—"}
{user?.role ?? "Signed in"}
)}
>
);
}