export default function getTaskDescription(samplesItem) {
  var description = samplesItem.description,
      imageUrl = samplesItem.imageUrl,
      url = samplesItem.url,
      pdfUrl = samplesItem.pdfUrl;
  if (description) return description;
  if (imageUrl) return "![".concat(imageUrl, "](").concat(imageUrl, ")");
  if (pdfUrl) return "[PDF Link](".concat(pdfUrl, ")") + "<object data=\"".concat(pdfUrl.replace("http://", "https://"), "\" type=\"application/pdf\" width=\"100%\" height=\"600px\"></object>");
  if (url) return "Use this [Link](".concat(url, ")");
  return null;
}