import SwiftUI
import AppIntents

struct ConfirmOrderView: View {
   let movieTitle: String
   let orders: Int

   var body: some View {
      VStack {
         Text(movieTitle)
            .font(.title.bold())
         if orders > 0 {
            Text("Copies ordered:")
               .font(.body)
            Text("\(orders) copies")
               .font(.title)
               .foregroundStyle(.green)
         } else {
            Text("No copies ordered")
               .font(.title)
               .foregroundStyle(.red)
         }
      }.padding()
   }
}