ErrorMessage

@Composable
fun ReversiScope.ErrorMessage(error: ReversiException?, modifier: Modifier = Modifier, setError: (Exception?, ErrorType?) -> Unit)

Composable that displays an error message based on the error type.

Parameters

error

Current error to show (null hides the message).

modifier

Optional modifier for styling the composable.

setError

Callback to clear or update the error.