I have a function called sweetAlertConfirmationMessage. It takes a message, shows that as the text and then waits for the user to confirm or cancel the pop-up a
sweetAlertConfirmationMessage