UNPKG

@pdftron/webviewer-react-toolkit

Version:

A React component library for integrating with PDFTron WebViewer API.

17 lines (16 loc) 1.37 kB
import classnames from 'classnames'; import React from 'react'; export var FilePlaceholder = function (_a) { var className = _a.className, extension = _a.extension; var filePlaceholderClass = classnames('ui__base ui__filePlaceholder', className); var formattedExtension = extension && "." + extension.replace(/^\./, ''); return (React.createElement("div", { className: filePlaceholderClass }, React.createElement("div", { className: "ui__filePlaceholder__block ui__filePlaceholder__block--thumbnail" }), React.createElement("div", { className: "ui__filePlaceholder__block ui__filePlaceholder__block--line-sm" }), React.createElement("div", { className: "ui__filePlaceholder__block ui__filePlaceholder__block--line-xs" }), React.createElement("div", { className: "ui__filePlaceholder__block ui__filePlaceholder__block--line-df" }), React.createElement("div", { className: "ui__filePlaceholder__block ui__filePlaceholder__block--line-lgx" }), React.createElement("div", { className: "ui__filePlaceholder__block ui__filePlaceholder__block--line-lg" }), React.createElement("div", { className: "ui__filePlaceholder__block ui__filePlaceholder__block--line-df" }), formattedExtension ? React.createElement("div", { className: "ui__filePlaceholder__extension" }, formattedExtension) : undefined)); };