Revenue List Item

fun RevenueListItem(viewModel: RevenueRelatedScreenViewModel, revenue: Revenue, labels: List<RevenueLabel>, containerColor: Color, overline: @Composable (List<RevenueLabel>) -> Unit = { ticketLabel -> RevenueLabels( labels = ticketLabel ) }, info: @Composable () -> Unit = { RevenueInfo( viewModel = viewModel, revenue = revenue ) }, allowEdit: Boolean = true, onEdit: () -> Unit, deleteIcon: ImageVector, actionButton: @Composable () -> Unit, deleteAlertDialog: @Composable (MutableState<Boolean>) -> Unit)

Custom ListItem used to display and to manage a revenue

Parameters

viewModel

The support viewmodel for the screen

revenue

The revenue to display

labels

The labels attached to the revenue

containerColor

The color to apply to the container

overline

The overline section of the component

info

The info section of the component

allowEdit

Whether the edit of the revenue is allowed

onEdit

The action to execute when the user clicked the edit button

deleteIcon

The icon of the delete button

actionButton

The action button

deleteAlertDialog

The related dialog used to warn about the revenue deletion