GrantDialog
fun GrantDialog(handler: <Error class: unknown class>, strings: GrantDialogStrings = LocalGrantDialogStrings.current)
A comprehensive Dialog Handler optimized for performance and accessibility.
Button labels and titles are resolved from LocalGrantDialogStrings — set them once at the top of your composition via GrantDialogStringsProvider and every GrantDialog call in the subtree picks them up automatically.
An explicit strings parameter overrides LocalGrantDialogStrings for this single call site, useful when one screen needs a different tone or wording.
Uses derivedStateOf over the underlying GrantHandler.state so that unrelated field changes (e.g. message text edits) do not trigger a re-composition of the dialog branch selection. Recomposition only happens when the dialog kind actually changes.