package com.pixelized.headache.module

import com.pixelized.headache.ui.navigation.destination.HomePageDestination
import com.pixelized.headache.ui.navigation.destination.YearSummaryDestination
import com.pixelized.headache.ui.navigation.home.HomeNavigator
import com.pixelized.headache.ui.navigation.main.MainNavigator
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityRetainedComponent
import dagger.hilt.android.scopes.ActivityRetainedScoped

@Module
@InstallIn(ActivityRetainedComponent::class)
object AppModule {

    @Provides
    @ActivityRetainedScoped
    fun provideMainNavigator(): MainNavigator {
        return MainNavigator(startDestination = HomePageDestination)
    }

    @Provides
    @ActivityRetainedScoped
    fun provideHomeNavigator(): HomeNavigator {
        return HomeNavigator(startDestination = YearSummaryDestination)
    }
}
