SecondScreen

fun SecondScreen(viewModel: SecondViewModel, shuttle: Shuttle, cargoId: String)

Renders the second screen for the MVVM with Compose and Navigation demo. Triggers cargo pickup via SecondViewModel when cargoId is non-empty, and displays the retrieved image or an error state accordingly.

Parameters

viewModel

the view model that manages cargo pickup state.

shuttle

the Shuttle instance passed for cargo pickup initiation.

cargoId

the identifier of the cargo to retrieve from the warehouse.