package org.chip2n.fretboard.injection

import android.content.res.Resources
import dagger.Module
import dagger.Provides
import org.chip2n.fretboard.BaseContext
import javax.inject.Singleton

@Module
class AppModule(private val baseContext: BaseContext) {
    @Provides
    @Singleton
    fun baseContext(): BaseContext {
        return baseContext
    }

    @Provides
    @Singleton
    fun resources(): Resources {
        return baseContext.resources
    }
}
