Regarding the implementation, since the 'update profile picture dialog' and the 'delete account dialog' are very similar, I took the code from the 'update profile picture dialog' and adjusted it into a common Composable function that is to be used for both dialogs.
Removed the 'Cancel' string resource and used android.R.string.cancel instead.
What does it fix?
Implements the UI for the delete account dialog.
Regarding the implementation, since the 'update profile picture dialog' and the 'delete account dialog' are very similar, I took the code from the 'update profile picture dialog' and adjusted it into a common Composable function that is to be used for both dialogs. Removed the 'Cancel' string resource and used android.R.string.cancel instead.
I'm open for some renaming.