Destructive
  fun DestructiveActionDialog(isVisible: Boolean, onConfirmAction: () -> Unit, onDismissAction: () -> Unit, title: String, text: AnnotatedString, confirmButtonText: String, dismissButtonText: String, imageVector: ImageVector)
This composable is the Destructive Action Dialog. It displays a dialog for the user to confirm a destructive action, such as deletion or logging out.
Parameters
is
Boolean whether the dialog is visible
on
() -> Unit the function to call when the user confirms the action
on
() -> Unit the function to call when the user dismisses the action
title
String the title of the dialog
text
String the text of the dialog
confirm
String the text of the confirm button
dismiss
String the text of the dismiss button
image
ImageVector the image vector of the dialog