@afzalimdad9/react-file-preview
Version:
The url previewer is built using native html elements for previewing url of files of the following type
10 lines • 585 B
JavaScript
import { __makeTemplateObject } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import styled from 'styled-components';
var Image = styled.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n"], ["\n width: 100%;\n height: 100%;\n"])));
export default function ImageViewer(_a) {
var src = _a.src, onError = _a.onError, onLoad = _a.onLoad;
return _jsx(Image, { src: src, onError: onError, onLoad: function () { return onLoad(true); } });
}
var templateObject_1;
//# sourceMappingURL=image-viewer.js.map