//
//  ExerciseDetailHeader.swift
//  PuppyTraining-final
//
//  Created by Natalia Panferova on 15/08/22.
//  Copyright © 2025 NIL COALESCING LIMITED. All rights reserved.
//

import SwiftUI

struct ExerciseDetailHeader: View {
    let exercise: Exercise
    
    var body: some View {
        VStack(alignment: .leading, spacing: 26) {
            Text("Difficulty level: \(exercise.difficulty.description)")
                .foregroundStyle(.secondary)
            Text(exercise.description)
                .font(.headline)
        }
    }
}

#Preview {
    ExerciseDetailHeader(
        exercise: ExercisesController()
            .exercises[0]
    )
}
