Transitions back to idle and clears the error.
Clears the error without changing the step.
Transitions from idle → confirming, opening the dialog.
Error message from the last failed submit, or null.
Current phase of the flow.
Runs action while in the submitting phase.
On success transitions to idle; on failure stays in confirming with error set.
State and controls returned by useConfirmAction.