UNPKG

react-file-previewer

Version:

A browser/device-agnostic file previewer for PDF and image file types built on top of React-PDF.

10 lines (7 loc) 180 B
import React from 'react'; const PageCount = ({ current, total }) => ( <span className="preview-pagecount"> {current + 1} of {total} </span> ); export default PageCount;