Revenue Info

fun RevenueInfo(viewModel: RevenueRelatedScreenViewModel, revenue: Revenue, customTitle: String? = null, dateHeader: StringResource = Res.string.date, pattern: String = COMPLETE_EUROPEAN_DATE_PATTERN)

Used to display the information of a Revenue such title, value, etc

Parameters

viewModel

The support viewmodel for the screen

revenue

The revenue from retrieve the information to display

customTitle

Value of a custom title to use for the component

dateHeader

The header of the date

pattern

The pattern to use to format the long value