Use the flows and the supplied Bootbox options for confirmation.
It's the same for bootstrap 4 and 5.