import ActivityKit
import Foundation

struct SessionActivityAttributes: ActivityAttributes, Sendable {
    public struct ContentState: Codable, Hashable, Sendable {
        var elapsed: TimeInterval
        var totalAttempts: Int
        var completedProblems: Int
    }

    var gymName: String
    var startTime: Date
}

extension SessionActivityAttributes {
    static var preview: SessionActivityAttributes {
        SessionActivityAttributes(gymName: "Summit Climbing", startTime: Date())
    }
}
