Whether the discard-confirmation dialog should be rendered.
Dismisses the dialog and replays the navigation action that was blocked.
Drops the blocked action and keeps the user on the screen.
Hides the dialog without deciding — safe to run before confirmDiscard.
Disarms the guard permanently so a completed save can navigate away.
Dialog state and handlers returned by useUnsavedChangesGuard.