How to make dialog components reusable in Jetpack Compose
Can a dialog be altered to make its components reusable without having to type duplicate lines of code for multiple items. My list has more than one item. When I click the first list item (Starters), I want 'Starters' as the dialog title and the Screen.Starters.route navigation route to be used, whereas when I click the other list item (Desserts), I want 'Desserts' as the dialog title Screen.Starters.route navigation route to be used.
enum class Items(@StringRes val textResId: Int) {...