Repository URL to install this package:
|
Version:
3.12.2 ▾
|
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;
}