//
//  SQTextConfiguration.swift
//  Allovoisins
//
//  Created by Claude on 22/10/2025.
//  Copyright © 2025 AlloVoisins. All rights reserved.
//

import SwiftUI

/// Configuration structure for Sequoia Text components.
/// Contains all customizable options that can be set via View Modifiers.
struct SQTextConfiguration {
    var size: CGFloat = 16
    var font: SQTextFont = .medium
    var textColor: Color = .sqNeutral(90)
}

// MARK: - Environment Key

private struct SQTextConfigurationKey: EnvironmentKey {
    static let defaultValue = SQTextConfiguration()
}

extension EnvironmentValues {
    var sqTextConfiguration: SQTextConfiguration {
        get { self[SQTextConfigurationKey.self] }
        set { self[SQTextConfigurationKey.self] = newValue }
    }
}
