AccrueAdmin.Components.DunningBanner (accrue_admin v1.3.0)

Copy Markdown View Source

A headless HEEx component that conditionally renders its inner block (or a default message) only if the given customer is currently in an active dunning campaign.

Summary

Functions

Renders the dunning banner content if Accrue.Dunning.requires_attention?/1 is true.

Functions

dunning_banner(assigns)

Renders the dunning banner content if Accrue.Dunning.requires_attention?/1 is true.

Assigns

  • :customer - The customer or billable struct to check for dunning attention. Required.
  • :inner_block - The content to render if attention is required. Optional. If omitted, a default message is rendered.

Attributes

  • customer (:any) (required) - The customer or billable struct.

Slots

  • inner_block