import SwiftUI

struct OfflineBanner: View {
    var body: some View {
        HStack(spacing: 8) {
            Image(systemName: "wifi.slash")
                .font(.footnote.bold())
            Text(L("offline.banner"))
                .font(.footnote.bold())
        }
        .frame(maxWidth: .infinity)
        .padding(.vertical, 8)
        .padding(.horizontal)
        .background(Color.orange)
        .foregroundStyle(.white)
        .accessibilityLabel("Offline. Showing cached content.")
    }
}

#Preview {
    VStack {
        OfflineBanner()
        Spacer()
    }
}
