Menu Item
fun <T> MenuItem(modifier: Modifier = Modifier, menuItemData: MenuItemData<T>, onItemClick: (T) -> Unit)
DHIS2 MenuItem Used for dropdown menu.
Parameters
modifier
: allows a modifier to be passed externally.
menu Item Data
: manages the MenuItemData
on Item Click
: callback to when menu item is clicked.