package __PACKAGE__.presentation.navigation // Type-safe route registry. Add a Screen object + a Routes constant per destination. sealed class Screen(val route: String) { data object Shell : Screen(Routes.SHELL) // Example detail destination reachable from a tab. Add your own below. data object Detail : Screen(Routes.DETAIL) // cmp:anchor screen-objects } object Routes { const val SHELL = "shell" const val DETAIL = "detail/{itemId}" // cmp:anchor route-consts fun detail(itemId: String) = "detail/$itemId" }