getIconFromType = mimeType => {
  if (isImage(mimeType)) {
    return MediaIcon
  }

  if (mimeType?.includes('video')) {
    return VideoIcon
  }

  return DocumentIcon
}
Maps a MimeType to an Icon component
@param {string} mimeType MimeType to test
@returns {IconComponent}