{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sidebar-account-card",
  "type": "registry:component",
  "title": "Sidebar Account Card",
  "description": "A sidebar whose account card grows upward into a panel with a status switch, workspace picker, seat meter and sign out. The avatar ring takes the status color and the nav behind softly blurs.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "sidebars",
    "sidebar",
    "account",
    "user menu",
    "status",
    "workspace switcher",
    "profile"
  ],
  "docs": "https://hyperblur.dev/effects/sidebar-account-card",
  "files": [
    {
      "path": "registry/hyperblur/sidebar-account-card.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/sidebar-account-card.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nconst PATHS = {\n  home: \"M3.5 9.2L10 3.8l6.5 5.4V16a.8.8 0 0 1-.8.8H12v-4.5H8v4.5H4.3a.8.8 0 0 1-.8-.8z\",\n  pulse: \"M2.5 10h3.2l2-5 4 10 2-5h3.8\",\n  folder: \"M3 6.2a1.5 1.5 0 0 1 1.5-1.5h3.1l1.6 1.8h5.8A1.5 1.5 0 0 1 16.5 8v6.3a1.5 1.5 0 0 1-1.5 1.5H4.5A1.5 1.5 0 0 1 3 14.3z\",\n  calendar: \"M4.5 5h11a1 1 0 0 1 1 1v9.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zM3.5 8.5h13M7 3.5v3M13 3.5v3\",\n  chat: \"M4 4.5h12a1 1 0 0 1 1 1v7.2a1 1 0 0 1-1 1H9.5L6 17v-3.3H4a1 1 0 0 1-1-1V5.5a1 1 0 0 1 1-1z\",\n} as const;\n\nexport type SidebarAccountCardIconName = keyof typeof PATHS;\nexport type SidebarAccountCardStatus = \"online\" | \"away\" | \"busy\";\n\nexport interface SidebarAccountCardItem {\n  id: string;\n  label: string;\n  icon?: SidebarAccountCardIconName | React.ReactNode;\n  badge?: number;\n}\n\nexport interface SidebarAccountCardUser {\n  name: string;\n  email: string;\n  initials?: string;\n  color?: string;\n}\n\nexport interface SidebarAccountCardAccount {\n  id: string;\n  name: string;\n  role?: string;\n  color?: string;\n}\n\nexport interface SidebarAccountCardProps\n  extends Omit<React.HTMLAttributes<HTMLElement>, \"onChange\" | \"children\" | \"defaultValue\"> {\n  items?: SidebarAccountCardItem[];\n  active?: string;\n  defaultActive?: string;\n  onChange?: (id: string) => void;\n  user?: SidebarAccountCardUser;\n  status?: SidebarAccountCardStatus;\n  defaultStatus?: SidebarAccountCardStatus;\n  onStatusChange?: (status: SidebarAccountCardStatus) => void;\n  accounts?: SidebarAccountCardAccount[];\n  account?: string;\n  defaultAccount?: string;\n  onAccountChange?: (id: string) => void;\n  seats?: { used: number; total: number } | null;\n  open?: boolean;\n  defaultOpen?: boolean;\n  onOpenChange?: (open: boolean) => void;\n  onSettings?: () => void;\n  onSignOut?: () => void;\n  brand?: string;\n  accent?: string;\n}\n\nconst defaultItems: SidebarAccountCardItem[] = [\n  { id: \"home\", label: \"Overview\", icon: \"home\" },\n  { id: \"activity\", label: \"Activity\", icon: \"pulse\", badge: 6 },\n  { id: \"projects\", label: \"Projects\", icon: \"folder\" },\n  { id: \"schedule\", label: \"Schedule\", icon: \"calendar\" },\n  { id: \"messages\", label: \"Messages\", icon: \"chat\" },\n];\n\nconst defaultAccounts: SidebarAccountCardAccount[] = [\n  { id: \"acme\", name: \"Acme Robotics\", role: \"Owner\", color: \"#2f7bff\" },\n  { id: \"loop\", name: \"Loop Health\", role: \"Editor\", color: \"#30a46c\" },\n];\n\nconst STATUS: Record<SidebarAccountCardStatus, { label: string; note: string; color: string }> = {\n  online: { label: \"Active\", note: \"Online now\", color: \"#30a46c\" },\n  away: { label: \"Away\", note: \"Back in 30 min\", color: \"#f5a623\" },\n  busy: { label: \"Focus\", note: \"Notifications paused\", color: \"#e5484d\" },\n};\n\nconst css = `\n.hb-xk8 {\n  --hb-xk8-a: #2f7bff;\n  --hb-xk8-st: #30a46c;\n  position: relative;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  height: 100%;\n  padding: 10px 8px 8px;\n  border-right: 1px solid #1f1f1f;\n  background: #0d0d0d;\n  color: #ededed;\n  font-family: inherit;\n  font-size: 13px;\n  line-height: 18px;\n}\n.hb-xk8 *, .hb-xk8 *::before, .hb-xk8 *::after { box-sizing: border-box; }\n.hb-xk8-brand { display: flex; align-items: center; gap: 8px; height: 28px; margin: 0 6px 8px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }\n.hb-xk8-brand i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #ededed; color: #0d0d0d; font-size: 11px; font-style: normal; font-weight: 800; }\n.hb-xk8-list { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; transition: filter .35s ease, opacity .35s ease; }\n.hb-xk8[data-open=\"true\"] .hb-xk8-list { filter: blur(2px); opacity: .35; }\n.hb-xk8-item {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  width: 100%;\n  height: 32px;\n  margin: 0;\n  padding: 0 10px;\n  border: 0;\n  border-radius: 8px;\n  background: transparent;\n  color: #9a9aa1;\n  font: inherit;\n  font-weight: 500;\n  text-align: left;\n  cursor: pointer;\n  transition: background-color .15s ease, color .15s ease;\n}\n.hb-xk8-item svg { flex: none; width: 16px; height: 16px; }\n.hb-xk8-item:hover { background: rgba(255, 255, 255, .04); color: #ededed; }\n.hb-xk8-item:focus-visible, .hb-xk8-btn:focus-visible, .hb-xk8-opt:focus-visible, .hb-xk8-acct:focus-visible, .hb-xk8-act:focus-visible { outline: 2px solid var(--hb-xk8-a); outline-offset: -2px; }\n.hb-xk8-item[aria-current=\"page\"] { background: #1a1a1a; box-shadow: inset 0 0 0 1px #262626; color: #fff; }\n.hb-xk8-il { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hb-xk8-n { padding: 0 6px; border-radius: 99px; background: var(--hb-xk8-a); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 17px; }\n.hb-xk8-scrim { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; background: transparent; cursor: default; }\n.hb-xk8-card {\n  position: absolute;\n  right: 8px;\n  bottom: 8px;\n  left: 8px;\n  z-index: 2;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  border: 1px solid #242424;\n  border-radius: 13px;\n  background: linear-gradient(180deg, #161616, #121212);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 24px -14px rgba(0, 0, 0, .9);\n  transition: border-color .3s ease, box-shadow .4s ease;\n}\n.hb-xk8[data-open=\"true\"] .hb-xk8-card { border-color: #2e2e2e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 50px -16px rgba(0, 0, 0, 1); }\n.hb-xk8-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1); }\n.hb-xk8[data-open=\"true\"] .hb-xk8-panel { grid-template-rows: 1fr; }\n.hb-xk8-pin { min-height: 0; overflow: hidden; }\n.hb-xk8-pc { padding: 8px 8px 2px; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }\n.hb-xk8[data-open=\"true\"] .hb-xk8-pc { opacity: 1; transform: none; transition-delay: .1s; }\n.hb-xk8-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 9px; background: #0c0c0c; box-shadow: inset 0 0 0 1px #222; }\n.hb-xk8-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 7px; background: #222; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .5); transform: translateX(calc(var(--hb-xk8-si) * 100%)); transition: transform .4s cubic-bezier(.34, 1.3, .5, 1); }\n.hb-xk8-opt { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #8f8f8f; font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; transition: color .2s ease; }\n.hb-xk8-opt[aria-checked=\"true\"] { color: #fff; }\n.hb-xk8-opt i { width: 6px; height: 6px; border-radius: 99px; font-style: normal; }\n.hb-xk8-cap { margin: 8px 4px 3px; color: #5f5f66; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }\n.hb-xk8-acct { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; margin: 0; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: #c4c4c9; font: inherit; font-size: 12px; text-align: left; cursor: pointer; transition: background-color .15s ease; }\n.hb-xk8-acct:hover { background: rgba(255, 255, 255, .05); }\n.hb-xk8-sq { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: 10px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }\n.hb-xk8-an { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hb-xk8-role { color: #5f5f66; font-size: 10.5px; }\n.hb-xk8-check { width: 14px; height: 14px; color: var(--hb-xk8-a); animation: hb-xk8-pop .3s cubic-bezier(.34, 1.56, .64, 1); }\n.hb-xk8-seats { margin: 8px 4px 0; }\n.hb-xk8-sr { display: flex; justify-content: space-between; color: #8f8f8f; font-size: 10.5px; }\n.hb-xk8-sr b { color: #ededed; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-xk8-meter { display: grid; grid-template-columns: repeat(var(--hb-xk8-t), 1fr); gap: 2px; margin-top: 5px; }\n.hb-xk8-meter span { height: 4px; border-radius: 2px; background: #262626; }\n.hb-xk8-meter span[data-on=\"true\"] { background: var(--hb-xk8-a); }\n.hb-xk8-acts { display: flex; gap: 4px; margin-top: 8px; padding-top: 6px; border-top: 1px solid #222; }\n.hb-xk8-act { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; height: 28px; margin: 0; border: 0; border-radius: 7px; background: transparent; color: #a1a1a1; font: inherit; font-size: 11.5px; font-weight: 500; cursor: pointer; transition: background-color .15s ease, color .15s ease; }\n.hb-xk8-act svg { width: 13px; height: 13px; }\n.hb-xk8-act:hover { background: rgba(255, 255, 255, .05); color: #fff; }\n.hb-xk8-act[data-danger=\"true\"]:hover { background: rgba(229, 72, 77, .12); color: #ff8589; }\n.hb-xk8-btn { display: flex; flex: none; align-items: center; gap: 10px; width: 100%; height: 52px; margin: 0; padding: 0 10px 0 8px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease; }\n.hb-xk8-btn:hover { background: rgba(255, 255, 255, .025); }\n.hb-xk8-av { position: relative; display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: var(--hb-xk8-uc); box-shadow: 0 0 0 2px #121212, 0 0 0 3.5px var(--hb-xk8-st); color: #fff; font-size: 12px; font-weight: 700; transition: box-shadow .4s ease; }\n.hb-xk8-av::after { content: \"\"; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid #131313; border-radius: 99px; background: var(--hb-xk8-st); transition: background-color .4s ease; }\n.hb-xk8-who { display: flex; flex: 1; flex-direction: column; min-width: 0; }\n.hb-xk8-who b { overflow: hidden; font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }\n.hb-xk8-who span { overflow: hidden; color: #77777f; font-size: 11px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }\n.hb-xk8-note { animation: hb-xk8-note .3s cubic-bezier(.22, 1, .36, 1); }\n.hb-xk8-chev { flex: none; width: 16px; height: 16px; color: #6f6f76; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }\n.hb-xk8[data-open=\"true\"] .hb-xk8-chev { transform: rotate(180deg); }\n@keyframes hb-xk8-pop { from { opacity: 0; transform: scale(.3); } }\n@keyframes hb-xk8-note { from { opacity: 0; transform: translateY(4px); } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-xk8 *, .hb-xk8 *::before, .hb-xk8 *::after { transition: none !important; animation: none !important; }\n}\n`;\n\nfunction Glyph({ icon }: { icon?: SidebarAccountCardIconName | React.ReactNode }) {\n  if (typeof icon === \"string\" || icon === undefined) {\n    const d = PATHS[(icon as SidebarAccountCardIconName | undefined) ?? \"home\"] ?? PATHS.home;\n    return (\n      <svg viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n        <path d={d} />\n      </svg>\n    );\n  }\n  return <>{icon}</>;\n}\n\nfunction initialsOf(name: string) {\n  return name\n    .split(/\\s+/)\n    .filter(Boolean)\n    .slice(0, 2)\n    .map((w) => w[0]?.toUpperCase() ?? \"\")\n    .join(\"\");\n}\n\nconst order: SidebarAccountCardStatus[] = [\"online\", \"away\", \"busy\"];\n\nexport function SidebarAccountCard({\n  items = defaultItems,\n  active,\n  defaultActive,\n  onChange,\n  user = { name: \"Maya Chen\", email: \"maya@acme.dev\", color: \"#8b5cf6\" },\n  status,\n  defaultStatus = \"online\",\n  onStatusChange,\n  accounts = defaultAccounts,\n  account,\n  defaultAccount,\n  onAccountChange,\n  seats = { used: 8, total: 10 },\n  open,\n  defaultOpen = false,\n  onOpenChange,\n  onSettings,\n  onSignOut,\n  brand = \"Acme\",\n  accent = \"#2f7bff\",\n  className = \"\",\n  style,\n  ...rest\n}: SidebarAccountCardProps) {\n  const [inner, setInner] = React.useState(defaultActive ?? items[0]?.id ?? \"\");\n  const [innerStatus, setInnerStatus] = React.useState<SidebarAccountCardStatus>(defaultStatus);\n  const [innerAccount, setInnerAccount] = React.useState(defaultAccount ?? accounts[0]?.id ?? \"\");\n  const [innerOpen, setInnerOpen] = React.useState(defaultOpen);\n  const current = active ?? inner;\n  const st = status ?? innerStatus;\n  const acc = account ?? innerAccount;\n  const isOpen = open ?? innerOpen;\n  const cardRef = React.useRef<HTMLDivElement>(null);\n  const btnRef = React.useRef<HTMLButtonElement>(null);\n  const panelId = React.useId();\n  const touched = React.useRef(false);\n\n  const setOpen = React.useCallback(\n    (v: boolean) => {\n      touched.current = true;\n      if (open === undefined) setInnerOpen(v);\n      onOpenChange?.(v);\n    },\n    [open, onOpenChange],\n  );\n\n  React.useEffect(() => {\n    if (!isOpen || !touched.current) return;\n    const first = cardRef.current?.querySelector<HTMLElement>('[role=\"radio\"][aria-checked=\"true\"]');\n    first?.focus({ preventScroll: true });\n  }, [isOpen]);\n\n  React.useEffect(() => {\n    if (!isOpen) return;\n    const onDown = (e: PointerEvent) => {\n      const nav = cardRef.current?.parentElement;\n      if (nav && !nav.contains(e.target as Node)) setOpen(false);\n    };\n    document.addEventListener(\"pointerdown\", onDown);\n    return () => document.removeEventListener(\"pointerdown\", onDown);\n  }, [isOpen, setOpen]);\n\n  function close() {\n    setOpen(false);\n    btnRef.current?.focus({ preventScroll: true });\n  }\n\n  function setStatus(s: SidebarAccountCardStatus) {\n    if (status === undefined) setInnerStatus(s);\n    onStatusChange?.(s);\n  }\n\n  function onSegKey(e: React.KeyboardEvent<HTMLDivElement>) {\n    if (e.key !== \"ArrowRight\" && e.key !== \"ArrowLeft\") return;\n    e.preventDefault();\n    const i = order.indexOf(st);\n    const n = order[(i + (e.key === \"ArrowRight\" ? 1 : order.length - 1)) % order.length];\n    setStatus(n);\n    cardRef.current?.querySelector<HTMLElement>(`[data-xk8-st=\"${n}\"]`)?.focus();\n  }\n\n  function pickAccount(id: string) {\n    if (account === undefined) setInnerAccount(id);\n    onAccountChange?.(id);\n  }\n\n  function onItemsKey(e: React.KeyboardEvent<HTMLUListElement>) {\n    const btns = Array.from(e.currentTarget.querySelectorAll<HTMLButtonElement>(\"button\"));\n    const at = btns.indexOf(document.activeElement as HTMLButtonElement);\n    if (at < 0) return;\n    let n = -1;\n    if (e.key === \"ArrowDown\") n = Math.min(btns.length - 1, at + 1);\n    else if (e.key === \"ArrowUp\") n = Math.max(0, at - 1);\n    if (n >= 0) {\n      e.preventDefault();\n      btns[n]?.focus();\n    }\n  }\n\n  const info = STATUS[st];\n  const ci = items.findIndex((i) => i.id === current);\n  const vars = {\n    \"--hb-xk8-a\": accent,\n    \"--hb-xk8-st\": info.color,\n    \"--hb-xk8-uc\": user.color ?? accent,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <nav aria-label=\"Main\" className={`hb-xk8 ${className}`} data-open={isOpen} style={vars} {...rest}>\n      <style href=\"hb-sidebar-account-card\" precedence=\"default\">{css}</style>\n      <div className=\"hb-xk8-brand\">\n        <i aria-hidden=\"true\">{brand.slice(0, 1)}</i>\n        {brand}\n      </div>\n      <ul className=\"hb-xk8-list\" role=\"list\" onKeyDown={onItemsKey} inert={isOpen}>\n        {items.map((item, i) => (\n          <li key={item.id}>\n            <button\n              type=\"button\"\n              className=\"hb-xk8-item\"\n              aria-current={item.id === current ? \"page\" : undefined}\n              tabIndex={i === (ci >= 0 ? ci : 0) ? 0 : -1}\n              onClick={() => {\n                if (active === undefined) setInner(item.id);\n                onChange?.(item.id);\n              }}\n            >\n              <Glyph icon={item.icon} />\n              <span className=\"hb-xk8-il\">{item.label}</span>\n              {item.badge ? <span className=\"hb-xk8-n\">{item.badge}</span> : null}\n            </button>\n          </li>\n        ))}\n      </ul>\n      {isOpen ? <button type=\"button\" className=\"hb-xk8-scrim\" tabIndex={-1} aria-hidden=\"true\" onClick={close} /> : null}\n      <div\n        ref={cardRef}\n        className=\"hb-xk8-card\"\n        onKeyDown={(e) => {\n          if (e.key === \"Escape\" && isOpen) {\n            e.stopPropagation();\n            close();\n          }\n        }}\n      >\n        <div id={panelId} className=\"hb-xk8-panel\" inert={!isOpen}>\n          <div className=\"hb-xk8-pin\">\n            <div className=\"hb-xk8-pc\">\n              <div\n                className=\"hb-xk8-seg\"\n                role=\"radiogroup\"\n                aria-label=\"Status\"\n                onKeyDown={onSegKey}\n                style={{ \"--hb-xk8-si\": order.indexOf(st) } as React.CSSProperties}\n              >\n                <span className=\"hb-xk8-thumb\" aria-hidden=\"true\" />\n                {order.map((s) => (\n                  <button\n                    key={s}\n                    type=\"button\"\n                    role=\"radio\"\n                    className=\"hb-xk8-opt\"\n                    data-xk8-st={s}\n                    aria-checked={s === st}\n                    tabIndex={s === st ? 0 : -1}\n                    onClick={() => setStatus(s)}\n                  >\n                    <i style={{ background: STATUS[s].color }} aria-hidden=\"true\" />\n                    {STATUS[s].label}\n                  </button>\n                ))}\n              </div>\n              {accounts.length ? (\n                <>\n                  <div className=\"hb-xk8-cap\">Workspaces</div>\n                  {accounts.map((a) => (\n                    <button key={a.id} type=\"button\" className=\"hb-xk8-acct\" aria-pressed={a.id === acc} onClick={() => pickAccount(a.id)}>\n                      <span className=\"hb-xk8-sq\" style={{ background: a.color ?? accent }} aria-hidden=\"true\">\n                        {a.name.slice(0, 1)}\n                      </span>\n                      <span className=\"hb-xk8-an\">{a.name}</span>\n                      {a.id === acc ? (\n                        <svg className=\"hb-xk8-check\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                          <path d=\"M3.5 8.5l3 3 6-7\" />\n                        </svg>\n                      ) : a.role ? (\n                        <span className=\"hb-xk8-role\">{a.role}</span>\n                      ) : null}\n                    </button>\n                  ))}\n                </>\n              ) : null}\n              {seats ? (\n                <div className=\"hb-xk8-seats\">\n                  <div className=\"hb-xk8-sr\">\n                    <span>Seats</span>\n                    <b>\n                      {seats.used} of {seats.total}\n                    </b>\n                  </div>\n                  <div\n                    className=\"hb-xk8-meter\"\n                    role=\"meter\"\n                    aria-label=\"Seats used\"\n                    aria-valuemin={0}\n                    aria-valuemax={seats.total}\n                    aria-valuenow={seats.used}\n                    style={{ \"--hb-xk8-t\": Math.max(1, Math.min(24, seats.total)) } as React.CSSProperties}\n                  >\n                    {Array.from({ length: Math.max(1, Math.min(24, seats.total)) }, (_, i) => (\n                      <span key={i} data-on={i < seats.used} />\n                    ))}\n                  </div>\n                </div>\n              ) : null}\n              <div className=\"hb-xk8-acts\">\n                <button type=\"button\" className=\"hb-xk8-act\" onClick={onSettings}>\n                  <svg viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                    <path d=\"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zM10 2.8v2M10 15.2v2M17.2 10h-2M4.8 10h-2M15.1 4.9l-1.4 1.4M6.3 13.7l-1.4 1.4M15.1 15.1l-1.4-1.4M6.3 6.3L4.9 4.9\" />\n                  </svg>\n                  Settings\n                </button>\n                <button type=\"button\" className=\"hb-xk8-act\" data-danger=\"true\" onClick={onSignOut}>\n                  <svg viewBox=\"0 0 20 20\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                    <path d=\"M8 4H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3M12.5 13.5L16 10l-3.5-3.5M16 10H8\" />\n                  </svg>\n                  Sign out\n                </button>\n              </div>\n            </div>\n          </div>\n        </div>\n        <button\n          ref={btnRef}\n          type=\"button\"\n          className=\"hb-xk8-btn\"\n          aria-expanded={isOpen}\n          aria-controls={panelId}\n          aria-label={`${user.name}, ${info.label}. Account menu`}\n          onClick={() => setOpen(!isOpen)}\n        >\n          <span className=\"hb-xk8-av\" aria-hidden=\"true\">{user.initials ?? initialsOf(user.name)}</span>\n          <span className=\"hb-xk8-who\">\n            <b>{user.name}</b>\n            <span key={st} className=\"hb-xk8-note\">{isOpen ? info.note : user.email}</span>\n          </span>\n          <svg className=\"hb-xk8-chev\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n            <path d=\"M4 10l4-4 4 4\" />\n          </svg>\n        </button>\n      </div>\n    </nav>\n  );\n}\n"
    }
  ]
}