import Foundation

enum DefaultFollowUpPreset: String, CaseIterable, Sendable {
    case none
    case oneWeek
    case twoWeeks

    var localizedTitle: String {
        switch self {
        case .none: "Off"
        case .oneWeek: "1W"
        case .twoWeeks: "2W"
        }
    }

    func followUpDate(from referenceDate: Date) -> Date? {
        switch self {
        case .none:
            nil
        case .oneWeek:
            Calendar.current.date(byAdding: .day, value: 7, to: referenceDate)
        case .twoWeeks:
            Calendar.current.date(byAdding: .day, value: 14, to: referenceDate)
        }
    }
}
