struct ContentView: View {
   @State private var openDialog: Bool = false

   var body: some View {
      VStack(spacing: 10) {
         Button("Open Confirmation Dialog") {
            openDialog = true
         }
         .confirmationDialog("Email", isPresented: $openDialog, actions: {
            Button("Move to Inbox", role: .none, action: {})
            Button("Delete", role: .destructive, action: {})
            Button("Cancel", role: .cancel, action: {})
         }, message: {
            Text("What do you want to do with the message?")
         })
         Spacer()
      }.padding()
  }
}