DrawerComponent

@Composable
fun DrawerComponent(modifier: Modifier, devices: List<Device>, selectedDevice: Device, onMainApplicationClose: () -> Unit = {}, onMainApplicationMinimize: () -> Unit = {}, onDeviceSelected: (Device) -> Unit = {})

This function displays a drawer component for the application.

Parameters

modifier

The modifier to be applied to the drawer component.

devices

The list of devices to be displayed in the drawer.

selectedDevice

The selected device.

onMainApplicationClose

The action to be performed when the main application is closed.

onMainApplicationMinimize

The action to be performed when the main application is minimized.

onDeviceSelected

The action to be performed when a device is selected.

Example usage:

DrawerComponent(
modifier = Modifier,
devices = listOf(),
selectedDevice = Device(DeviceDetails(name = emptyString)),
onMainApplicationClose = { },
onMainApplicationMinimize = { },
onDeviceSelected = { }
)