IngredientPopupDialog

fun IngredientPopupDialog(navController: NavController, ingredients: SnapshotStateList<Ingredient>, ingredient: Ingredient, onDismiss: () -> Unit)

popup dialog use for Fridge and is used to display the item that has been double clicked

Parameters

navController

to navigate to the recipes

ingredients

to remove the current one if the user no longer wants/has it

ingredient

the double tapped ingredient to be displayed

onDismiss

what to do if the user taps off the popup display