chore: Reduced complexity of renderActions()
chore: Reduced complexity of renderActions()

Created two new functions: 
* renderButton(): generic function to apply rendering parameters to buttons
* handleButtonsStyling(): function  to apply styling to buttons
limonte/sweetalert2