- {/* Custom icon or activity / success indicator */}
- {headerIcon ? (
- headerIcon
- ) : isPolling ? (
-
-
-
- ) : (
- showSuccessIcon &&
- )}
+ {displayIcon}
- {/* Custom title or default status text */}
-
- {headerTitle ||
- (isPolling
- ? 'Processing...'
- : showSuccessIcon
- ? 'Workflow completed successfully'
- : isFailed
- ? 'Workflow failed'
- : 'Workflow completed')}
-
- {/* Custom description */}
- {headerDescription && (
+
{displayTitle}
+ {overrideDescription && (
- {headerDescription}
+ {overrideDescription}
)}
- {/* Custom action or default close button */}
- {headerAction && headerAction}
+ {overrideAction && overrideAction}
{onClose && (