package com.github.nullptroma.wallenc.usecases

import com.github.nullptroma.wallenc.domain.interfaces.IStorageInfo
import com.github.nullptroma.wallenc.domain.interfaces.IUnlockManager
import kotlinx.coroutines.flow.StateFlow
import java.util.UUID
import javax.inject.Inject
import javax.inject.Singleton

@Singleton
class GetOpenedStoragesUseCase @Inject constructor(
    private val unlockManager: IUnlockManager,
) {
    val openedStorages: StateFlow<Map<UUID, IStorageInfo>>
        get() = unlockManager.openedStorages
}
