//
//  RelationshipHelpers.swift
//  lichunWebsocket
//
//  Helper functions for relationship and affinity calculations
//

import SwiftUI

/// Returns color based on affinity level
/// - Parameter affinity: Affinity value (0-100)
/// - Returns: Color representing affinity level
func getAffinityColor(for affinity: Int) -> Color {
    if affinity > 75 {
        return AppColors.success
    } else if affinity > 50 {
        return AppColors.warning
    } else if affinity > 25 {
        return AppColors.accent
    } else {
        return AppColors.health
    }
}
