Add a visual (gif) inside the "Replace" dialog that visually shows what will happen if you confirm replacing of the node
It seems to work exactly as expected Ravi, that is very good!
Regarding the code changes I think you did a bit of unnecessary refactoring of the code. We want to have components that are as reusable as possible and also avoid copying code when not needed. Here I would suggest to instead adjust the Dialog component to be able to take in a picture. You could import the graphic in ConfirmationDialog.js and have it set as one of the options in the switch as title, question and confirm are set now. In the dialog graphics can be shown if it is sent.
Very good Ravi, I just added some more comments related to generalizing even more!