AppDialog

fun AppDialog(onDismissRequest: () -> Unit, confirmButtonText: String, onConfirmClick: () -> Unit, modifier: Modifier = Modifier, dismissButtonText: String? = null, onDismissClick: () -> Unit? = null, title: String? = null, description: String? = null, imageSource: AppImageSource? = null)

A custom alert dialog component following the Material 3 specifications and project styling.

Parameters

onDismissRequest

Callback when the dialog is dismissed.

confirmButtonText

The text for the confirmation button.

onConfirmClick

Callback for the confirmation button.

modifier

The Modifier to be applied to the dialog.

dismissButtonText

Optional text for the dismiss button.

onDismissClick

Optional callback for the dismiss button.

title

Optional title for the dialog.

description

Optional description for the dialog.

imageSource

Optional AppImageSource to be displayed at the top.