struct ContentView: View {
   @Environment(ApplicationData.self) private var appData

   var body: some View {
      NavigationStack {
         List(appData.userData) { book in
            CellBook(book: book)
         }
         .navigationTitle(Text("Books"))
         .toolbar {
            ToolbarItem(placement: .topBarTrailing) {
               Button(action: {
                  print("Read Emails")
               }, label: {
                  Image(systemName: "envelope")
               })
               .foregroundStyle(.black)
               .padding(5)
               .background(.yellow)
               .clipShape(Capsule())
               .badge(5)
            }
            .sharedBackgroundVisibility(.hidden)
         }
      }
   }
}