//
//  ClockGestureHandler.swift
//  TheNoiseClock
//
//  Created by Matt Bruce on 9/8/25.
//

import SwiftUI

/// Component that handles gesture interactions for the clock view
struct ClockGestureHandler: View {
    
    // MARK: - Properties
    let onLongPress: () -> Void
    
    // MARK: - Body
    var body: some View {
        EmptyView()
            .contentShape(Rectangle())
            .simultaneousGesture(
                LongPressGesture(minimumDuration: AppConstants.DisplayMode.longPressDuration)
                    .onEnded { _ in
                        onLongPress()
                    }
            )
    }
}

// MARK: - Preview
#Preview {
    ClockGestureHandler(onLongPress: {})
}
