DeleteAllDialog

fun DeleteAllDialog(context: Context, ingredients: SnapshotStateList<Ingredient>, onDismiss: () -> Unit)

small popup when the delete option in Fridge is selected without selecting any dishes

Parameters

context
ingredients

the whole list that will be deleted

onDismiss

to do when exiting the screen and deleting all the ingredients