Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as React from "react";
import * as ReactPDF from "react-pdf";
import Pagination from "react-js-pagination";
import {
Spinner,
Intent,
NonIdealState,
} from "@blueprintjs/core";
import Toast from "./toast";
ReactPDF.pdfjs.GlobalWorkerOptions.workerSrc = "../dist/pdf.worker.js";
import "./output.less";
const translateScale = (scale: string) => {
if (scale.indexOf("%") > -1) {
return (+scale.replace(/[^\d]+/g, ""))/100.0;
}
return 1;
}
export interface IOutputProps {
path: string;
needsRefresh: boolean;
hasErrors: boolean;
showPendingSpinner: boolean;