import SwiftUI
struct ContentPreferencesRefreshNotice: View {
@Environment(AppModel.self) private var model
var body: some View {
if let error = model.contentPreferencesRefreshError, model.contentPreferences != nil {
VStack(alignment: .leading, spacing: 8) {
Text(error)
.foregroundStyle(.secondary)
Button("Retry") { Task { await model.reloadContentPreferences() } }
}
.appFont(.footnote)
}
}
}