Module

FPO.UI.Modals.DiscardModal

#discardModal

discardModal :: forall w action. Translator Labels -> action -> action -> action -> HTML w action

Modal for confirming discarding the current draft.

Requires:

  1. a translator for the UI texts
  2. an action to cancel discarding
  3. an action to proceed discarding
  4. a no-op action as a default do-nothing action

Modules