Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/utils / lib / isPreviewSupported.js
Size: Mime:
import isImage from './isImage';
import isPdf from './isPdf';
import isOpenedFromAdobe from './isOpenedFromAdobe';
import isSupportedVideo from './isSupportedVideo';
export default function isPreviewSupported(file) {
  // Checking if we could show a preview for this item or not
  if (isImage(file) || isPdf(file) && !isOpenedFromAdobe() || isSupportedVideo(file) && !isOpenedFromAdobe()) {
    return true;
  }
  return false;
}