//
//  CaptureButton.swift
//  CameraTester
//
//  Created by Matt Bruce on 1/2/26.
//

import SwiftUI
import Bedrock

// MARK: - Capture Button

struct CaptureButton: View {
    let action: () -> Void

    // Layout constants
    private let outerSize: CGFloat = 80
    private let innerSize: CGFloat = 68

    var body: some View {
        Button(action: action) {
            ZStack {
                // Outer ring
                Circle()
                    .stroke(Color.white, lineWidth: 4)
                    .frame(width: outerSize, height: outerSize)

                // Inner fill
                Circle()
                    .fill(Color.white)
                    .frame(width: innerSize, height: innerSize)
            }
            .shadow(radius: Design.Shadow.radiusMedium)
        }
        .accessibilityLabel("Take photo")
        .accessibilityHint("Double tap to capture a photo")
    }
}
