import Foundation
import Observation
import SwiftData

@Observable
@MainActor
final class AppState {
    var selectedTab: AppTab = .cards
    var cardStore: CardStore
    var contactsStore: ContactsStore
    let shareLinkService: ShareLinkProviding

    init(modelContext: ModelContext) {
        self.cardStore = CardStore(modelContext: modelContext)
        self.contactsStore = ContactsStore(modelContext: modelContext)
        self.shareLinkService = ShareLinkService()
    }
}
