import Foundation
import Bedrock

struct AppSettingsData: PersistableData {
    static var dataIdentifier: String = "rituals.settings"
    static var empty = AppSettingsData()

    var hapticsEnabled: Bool = true
    var soundEnabled: Bool = true
    var remindersEnabled: Bool = false
    var lastModified: Date = .now

    /// Sync priority - uses haptics as a simple indicator of user activity
    var syncPriority: Int { hapticsEnabled ? 1 : 0 }
}
