AdministrativeUnitsScreen

fun AdministrativeUnitsScreen(viewModel: AdministrativeUnitsViewModel = hiltViewModel(), onNavigateToAdministrativeUnit: () -> Unit, onSetToolbarInfo: (screenInfo: ScreenInfo) -> Unit)

The component that represents the Administrative Units Screen. It displays a grid of Google Maps components, each representing an administrative unit. The map displays the unit's geographic boundary (if available) and the number of images in the upper right corner.

Parameters

viewModel

the corresponding viewModel that provide access of all necessary data to populate the screen and methods to manipulate it.

onNavigateToAdministrativeUnit

when the user selects a Google Maps Component (the administrative unit) this method is called to redirect the user to the Administrative Unit Unit screen.

onSetToolbarInfo

a function to set information for the parent composable's toolbar, such as title, actions menu, and potentially other elements.