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"))
         .toolbarTitleDisplayMode(.inlineLarge)
         .toolbar {
            ToolbarItemGroup(placement: .primaryAction) {
               Button(action: {
                  print("Adding Book...")
               }, label: {
                  Image(systemName: "plus.app")
               })
            }
            ToolbarItemGroup(placement: .secondaryAction) {
               Button(action: {
                  print("Sorting Books...")
               }, label: {
                  Label("Sort Books", systemImage: "arrow.up.arrow.down")
               })
            }
         }
      }
   }
}