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

import SwiftUI

/// View for editing alarm label
struct LabelEditView: View {
    @Binding var label: String
    @Environment(\.dismiss) private var dismiss
    
    var body: some View {
        VStack(spacing: UIConstants.Spacing.large) {
            TextField("Alarm Label", text: $label)
                .textFieldStyle(RoundedBorderTextFieldStyle())
                .contentPadding(horizontal: UIConstants.Spacing.large)
            
            Spacer()
        }
        .navigationTitle("Label")
        .navigationBarTitleDisplayMode(.inline)
        .contentPadding(vertical: UIConstants.Spacing.large)
    }
}
