{/* Account name display — surfaced only when the account
name differs from the user's own name (see
`showAccountStrip`). For a default solo account the two
match, so we hide it to avoid duplicating the user name
below; for renamed or shared accounts it tells the user
which account they're acting in. */}
{showAccountStrip && account?.name ? (
{/* `title=` exposes the full name on hover when it
gets truncated (long account names + narrow
sidebars). Cheap a11y win. */}
{account.name}
{accountRole ? (
// Always render the chip — owners used to be
// invisible here, which made them indistinguishable
// from admins at a glance. Now everyone sees their
// role (with a colour cue) regardless of tier.
(() => {
const meta = ROLE_CHIP[accountRole];
const Icon = meta.icon;
return (
{meta.label}
);
})()
) : null}
) : null}
{profile?.avatar_url ? (
) : null}
{profile?.full_name?.charAt(0)?.toUpperCase() ??
profile?.email?.charAt(0)?.toUpperCase() ??
"U"}
{profile?.full_name ?? "User"}
{profile?.email ?? ""}
}
>
Profile
}
>
Settings
Sign out