LatestHRV.swift 961 Bytes
//
//  LatestHRV.swift
//  hippo-watch Watch App
//
//  Created by shihao on 2025/7/8.
//

import Foundation
import SwiftUI

struct LatestHRV: Codable {
    var userHrv: Double?
    var userHrvBaseline: Double?
    var pairUserHrv: Double?
    var pairHrvBaseline: Double?
}


extension HRVStatus {
    var watchStatusColors: [Color] {
        switch self {
        case .fullOfEnergy:
            return [.init(hex: "#FF6EA271"),
                    .black]
        case .normal:
            return [.init(hex: "#FF796EA2"),
                    .black]
        case .overpressure:
            return [.init(hex: "#FF924343"),
                    .black]
        }
    }
    
    var watchStatusTextColor: Color {
        switch self {
        case .fullOfEnergy:
            return .init(hex: "#FF95FF9B")
        case .normal:
            return .init(hex: "#FFE2BBFF")
        case .overpressure:
            return .init(hex: "#FFFF8E8E")
        }
    }
}