 import AAShareBubbles
 import ImagePicker
 import MessageUI
+import Social
 import SwiftyUserDefaults
 import UIKit
 

            present(mailController, animated: true, completion: nil)
        } else {
            showError("Es können keine E-Mail verschickt werden.")
        }
    }


        shareBubbles?.show()
    }

    // show error message
    func showError(_ error: String) {
        let alert = UIAlertController(title: nil, message: error, preferredStyle: .alert)
        alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
        present(alert, animated: true, completion: nil)
    }

    // show mail controller
    func showMailController() {
        guard let image = imageView.image else { return }
        guard let name = StationStorage.currentStation?.title else { return }
        guard let email = CountryStorage.currentCountry?.mail else { return }

        if MFMailComposeViewController.canSendMail() {
            guard let username = Defaults[.accountName] else {
                showError("Kein Accountname hinterlegt. Bitte unter \"Meine Daten\" angeben.")
                return
            }

            let mailController = MFMailComposeViewController()
            mailController.mailComposeDelegate = self
            mailController.setToRecipients([email])
