Skip to content

ImpersonationBannerProps

ImpersonationBannerProps = object

Defined in: packages/ui/src/types.ts:1346

Props for the ImpersonationBanner component.

Persistent banner shown when an admin is impersonating another user. Reads impersonation state from @cfast/auth. Hidden automatically when not impersonating. Displays the impersonated user’s email and a “Stop Impersonating” button that submits to the configured stopAction URL.

optional stopAction: string

Defined in: packages/ui/src/types.ts:1348

Form action URL for stopping impersonation. Defaults to “/admin/stop-impersonation”.