package com.example.tasks.navigation.customers

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.CatalogCustomers
import com.example.tasks.screens.Profile
import com.example.tasks.viewModels.AuthViewModel
import com.example.tasks.viewModels.DatabaseViewModel

@Composable
fun BottomGraphCustomers (
    navController: NavHostController,
    viewModel: DatabaseViewModel,
    authViewModel: AuthViewModel,
    mainNavController: NavController
) {
    NavHost(
    navController = navController,
    startDestination = Screen.Profile.route,
    ) {
        composable(Screen.Profile.route) {
            Profile(viewModel, authViewModel,mainNavController)
        }
        composable(Screen.CatalogCustomers.route) {
            CatalogCustomers(viewModel)
        }
    }
}