UnavailableContribution

Organism

Placeholder for a contribution that cannot be shown, for admins and editors (end users see nothing). Nine reasons (disabled, unentitled, blocked, retired, banned, quarantined, failed, missing, no-access), each with a default icon, tone and short text; four sizes (inline, card, tab, node); optional title, detail and action. Texts are overridable for i18n.

Card (dashboard widget, panel)

Preview

Disabled

The module that provides this is turned off.

Not in plan

Your current plan does not include this.

Quarantined

Paused automatically after repeated errors.

Failed to load

Something went wrong while showing this.

Code
<UnavailableContribution reason="disabled" action={{ label: 'Enable', onClick: enable }} />
<UnavailableContribution reason="unentitled" action={{ label: 'Upgrade', href: '/billing' }} />

Inline (top bar, menu, every reason)

Preview
DisabledThe module that provides this is turned off.
Not in planYour current plan does not include this.
BlockedAn administrator has blocked this.
RetiredThis is no longer offered.
BannedThis was banned and can no longer run.
QuarantinedPaused automatically after repeated errors.
Failed to loadSomething went wrong while showing this.
MissingWhat provided this is not installed.
No accessYou do not have permission to see this.
Code
<UnavailableContribution reason="blocked" size="inline" />

Node (page-builder block, automation node)

Preview

Product carousel

Disabled

The module that provides this is turned off.

Product carousel

Not in plan

Your current plan does not include this.

Product carousel

Quarantined

Paused automatically after repeated errors.

Product carousel

Failed to load

Something went wrong while showing this.

Code
<UnavailableContribution reason="quarantined" size="node" title="Product carousel" action={{ label: 'Retry', onClick: retry }} />

Tab panel

Preview

No access

You do not have permission to see this.

Code
<UnavailableContribution reason="no-access" size="tab" />
Sourcemodules/ui/UnavailableContribution.tsx