package id.iiyh.inatrading.core.di

import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import id.iiyh.inatrading.feature.favorite.data.repository.FavoriteRepositoryImpl
import id.iiyh.inatrading.feature.favorite.domain.FavoriteRepository
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
abstract class FavoriteModule {

    @Binds
    @Singleton
    abstract fun bindFavoriteRepository(impl: FavoriteRepositoryImpl): FavoriteRepository
}
