package com.tomhempel.rbarometer.utils

import androidx.annotation.DrawableRes
import com.tomhempel.rbarometer.R
import com.tomhempel.rbarometer.network.SyncPhase

/** Flat Material-style icons per sync phase — no emoji or decorative chrome. */
object SyncPhaseIcons {

    @DrawableRes
    fun iconRes(phase: SyncPhase): Int = when (phase) {
        SyncPhase.PREPARING -> R.drawable.ic_sync_phase_prepare
        SyncPhase.DOWNLOADING_QUESTIONNAIRES -> R.drawable.ic_sync_phase_questionnaires
        SyncPhase.DOWNLOADING_CLIENT_INFO -> R.drawable.ic_sync_phase_clients
        SyncPhase.DOWNLOADING_ANSWERS -> R.drawable.ic_sync_phase_answers
        SyncPhase.PROCESSING -> R.drawable.ic_sync_phase_processing
        SyncPhase.SECURELY_SAVING -> R.drawable.ic_sync_phase_saving
        SyncPhase.FINISHED -> R.drawable.ic_sync_complete
    }
}
