{
  "example": "import { AuthAccountSummary } from \"@godxjp/ui/layout\";\n\n<AuthAccountSummary email={user.email} actionLabel={t(\"auth.switchAccount\")} onAction={switchAccount} />",
  "group": "layout",
  "importPath": "@godxjp/ui/layout",
  "name": "AuthAccountSummary",
  "props": [
    {
      "description": "Authoritative signed-in email.",
      "name": "email",
      "required": true,
      "type": "string"
    },
    {
      "description": "Optional real avatar URL.",
      "name": "avatarSrc",
      "type": "string"
    },
    {
      "description": "Optional localized/text fallback; defaults to a user glyph.",
      "name": "avatarFallback",
      "type": "ReactNode"
    },
    {
      "description": "Localized visible switch-account action label.",
      "name": "actionLabel",
      "required": true,
      "type": "ReactNode"
    },
    {
      "description": "Consumer-owned account-switch navigation/action.",
      "name": "onAction",
      "required": true,
      "type": "() => void"
    },
    {
      "description": "Disable the action while the consumer cannot switch.",
      "name": "disabled",
      "type": "boolean"
    },
    {
      "description": "Optional structural class override.",
      "name": "className",
      "type": "string"
    }
  ],
  "related": [
    "AuthIdentity — page identity heading and requesting-client context; use AuthAccountSummary inside the card for the signed-in user.",
    "Avatar — use Avatar directly for general profile surfaces; AuthAccountSummary owns only the compact hosted-auth row."
  ],
  "rules": [
    45
  ],
  "storyPath": "layout/auth-account-summary.tsx",
  "tagline": "Compact signed-in account row for hosted auth: avatar fallback, authoritative email and switch action.",
  "usage": [
    "Pass only the authoritative signed-in email; AuthAccountSummary never fetches or invents identity data.",
    "Pass localized actionLabel and the existing account-switch handler. The component owns no route, mutation or permission behavior.",
    "The package owns avatar fallback, long-email truncation, responsive action wrapping and keyboard focus. Retune only through --auth-account-summary-* tokens."
  ],
  "useCases": [
    "OAuth device consent and authorization cards where the user must confirm or switch the signed-in account.",
    "Hosted consent screens that need a compact identity confirmation row without a second profile card."
  ]
}
