From fafc3c58540685fcb0914033f5bb16b813202d38 Mon Sep 17 00:00:00 2001 From: Cutiful <113351087+Syaroful@users.noreply.github.com> Date: Thu, 10 Jul 2025 18:21:21 +0700 Subject: [PATCH] feat: implement navigation for growth recipe feature --- .../naviagtion/NavGraph.kt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/naviagtion/NavGraph.kt diff --git a/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/naviagtion/NavGraph.kt b/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/naviagtion/NavGraph.kt new file mode 100644 index 0000000..c12df55 --- /dev/null +++ b/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/naviagtion/NavGraph.kt @@ -0,0 +1,22 @@ +package com.syaroful.agrilinkvocpro.growth_recipe_feature.naviagtion + +import androidx.compose.runtime.Composable +import androidx.navigation.compose.NavHost +import androidx.navigation.compose.composable +import androidx.navigation.compose.rememberNavController +import com.syaroful.agrilinkvocpro.growth_recipe_feature.presentation.recipe.GrowthRecipeScreen +import com.syaroful.agrilinkvocpro.growth_recipe_feature.presentation.recomendation.ClusterScreen + +@Composable +fun SetupNavigation() { + val navController = rememberNavController() + NavHost(navController, startDestination = "growth_recipe") { + composable("growth_recipe") { + GrowthRecipeScreen(navController = navController) + } + + composable("cluster") { + ClusterScreen(navController = navController) + } + } +} \ No newline at end of file