import Foundation
import Observation

/// Shared navigation state for cross-tab navigation requests.
@Observable
final class AppNavigationState {
    static let shared = AppNavigationState()
    private init() {}

    /// When set, MainTabView switches to the Library tab and LibraryView pushes this book.
    var pendingBookNavigation: BookDTO? = nil

    /// When set to true, MainTabView switches to the Settings tab (e.g. after a 401).
    var navigateToSettings: Bool = false
}
