package com.tangem.features.send.send.di

import com.tangem.core.decompose.di.ModelComponent
import com.tangem.core.decompose.model.Model
import com.tangem.features.send.send.confirm.model.SendConfirmModel
import com.tangem.features.send.send.model.SendModel
import com.tangem.features.send.send.success.model.SendConfirmSuccessModel
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.multibindings.ClassKey
import dagger.multibindings.IntoMap

@Module
@InstallIn(ModelComponent::class)
internal interface CommonSendModelModule {

    @Binds
    @IntoMap
    @ClassKey(SendModel::class)
    fun provideSendModel(model: SendModel): Model

    @Binds
    @IntoMap
    @ClassKey(SendConfirmModel::class)
    fun provideSendConfirmModel(model: SendConfirmModel): Model

    @Binds
    @IntoMap
    @ClassKey(SendConfirmSuccessModel::class)
    fun provideSendConfirmSuccessModel(model: SendConfirmSuccessModel): Model
}