SnippetErrorView
fun SnippetErrorView(errorMessage: String, modifier: Modifier = Modifier, isRefreshable: Boolean = false, refreshCallback: ErrorRefreshCallback? = null)
A composable function that displays a centered error message with optional retry functionality.
Parameters
errorMessage
The error message to display within the view.
modifier
A Modifier to customize the layout or behavior of the error view.
isRefreshable
Whether to show a retry button.
refreshCallback
Optional callback to trigger a refresh when retry is clicked.