import SwiftUI
import UIKit

/// Wraps UIActivityViewController so we can present arbitrary share items
/// from SwiftUI (UIImage, URL, etc.) via .sheet.
struct ShareSheet: UIViewControllerRepresentable {
    let items: [Any]

    func makeUIViewController(context: Context) -> UIActivityViewController {
        UIActivityViewController(activityItems: items, applicationActivities: nil)
    }

    func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {}
}
