package com.example.tasks.navigation.sellers

import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.tasks.navigation.Screen
import com.example.tasks.screens.CatalogSellers
import com.example.tasks.screens.ProfileSeller
import com.example.tasks.viewModels.AuthViewModel
import com.example.tasks.viewModels.CardViewModel
import com.example.tasks.viewModels.DatabaseViewModel

@Composable
fun BottomGraphSellers (
    navController: NavHostController,
    viewModel: DatabaseViewModel,
    authViewModel: AuthViewModel,
    mainNavController: NavController,
    viewModelCard: CardViewModel
) {
    NavHost(
    navController = navController,
    startDestination = Screen.ProfileSeller.route,
    ) {
        composable(Screen.ProfileSeller.route) {
            ProfileSeller(viewModel, authViewModel,mainNavController)
        }
        composable(Screen.CatalogSellers.route) {
            CatalogSellers(viewModel,mainNavController,viewModelCard)
        }
    }
}