ScaffoldView

@Composable
fun ReversiScope.ScaffoldView(setError: (Exception?, ErrorType?) -> Unit, backgroundTopBar: Color = Color.Transparent, error: ReversiException?, isLoading: Boolean = false, title: String = "", loadingModifier: Modifier = Modifier, previousPageContent: @Composable ReversiScope.() -> Unit, content: @Composable ReversiScope.(paddingValues: PaddingValues) -> Unit)

Main scaffold composable providing consistent layout structure for pages. Includes top app bar with title and navigation, content area, and error handling.

Parameters

setError

Callback to clear or set the current error.

backgroundTopBar

Background color for the top app bar.

error

Current error to render via snackbar/overlay.

isLoading

When true, overlays a loading indicator.

title

Title text displayed in the top app bar.

loadingModifier

Modifier for the loading state overlay.

previousPageContent

Composable to render the navigation/back button.

content

Main page content receiving scaffold padding.