AlertDialog

fun AlertDialog(onDismissRequest: () -> Unit, onConfirmation: () -> Unit, dialogTitle: String, dialogText: String, icon: ImageVector)

Displays a custom AlertDialog with an icon, title, text, and confirmation/dismiss buttons.

Parameters

onDismissRequest

Callback invoked when the user dismisses the dialog.

onConfirmation

Callback invoked when the user confirms the action.

dialogTitle

The title of the dialog.

dialogText

The text content of the dialog.

icon

The ImageVector representing the icon for the dialog.