ApplicationsComponent

@Composable
fun ApplicationsComponent(partitionedApplications: Pair<List<Application>, List<Application>>, selectedDevice: Device, socket: Socket, onAppSelected: (Application) -> Unit)

This is the main application component. It sets up the application area and handles the application selection and launching.

Parameters

partitionedApplications

The applications partitioned by whether they are running or not.

selectedDevice

The currently selected device.

socket

The current socket connection.

onAppSelected

A function to be called when an application is selected.

Example usage:

ApplicationsComponent(
partitionedApplications = Pair(listOf(Application()), listOf(Application())),
selectedDevice = Device(),
socket = Socket(),
onAppSelected = { app -> println("Selected app: ${app.name}") }
)