package com.github.nullptroma.wallenc.app.sync

import com.github.nullptroma.wallenc.domain.tasks.IStorageSyncTaskTitleFormatter
import com.github.nullptroma.wallenc.domain.tasks.StorageSyncTriggerReason
import com.github.nullptroma.wallenc.ui.resources.UiStringResolver
import com.github.nullptroma.wallenc.ui.resources.storageSyncTaskTitle
import javax.inject.Inject
import javax.inject.Singleton

@Singleton
class StorageSyncTaskTitleFormatter @Inject constructor(
    private val uiStrings: UiStringResolver,
) : IStorageSyncTaskTitleFormatter {
    override fun format(reason: StorageSyncTriggerReason): String =
        uiStrings.storageSyncTaskTitle(reason)
}
