package ru.fincode.tsudesk.feature.news.presentation.navigation

import androidx.compose.ui.Modifier
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import ru.fincode.tsudesk.core.navigation.AppRoute
import ru.fincode.tsudesk.feature.news.presentation.screen.NewsRoute

fun NavGraphBuilder.newsGraph(
    modifier: Modifier = Modifier,
) {

    composable<AppRoute.News> {
        NewsRoute(
            modifier = modifier
            // onOpenDetails = onOpenDetails
        )
    }

    // Если позже сделаешь экран деталей — добавишь сюда:
    // composable<AppRoute.NewsDetails> { entry ->
    //     val args = entry.toRoute<AppRoute.NewsDetails>()
    //     NewsDetailsRoute(url = args.url)
    // }
}