import SwiftUI
import AppIntents

struct FavoriteIntent: SnippetIntent {
   static let title: LocalizedStringResource = "Set Favorite"

   @Parameter
   var movie: MovieEntity
   
   @MainActor
   func perform() async throws -> some ShowsSnippetView {
      .result(
         view: MovieView(movie: movie)
      )
   }
}