import * as React from 'react'; import { useState } from 'react'; import { Button } from '../../core'; import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome'; import { faFilePdf } from '@fortawesome/free-regular-svg-icons'; import { FullScreenPDFViewer } from './FullScreenPDFViewer'; import './pdfViewer.scss'; export interface IPDFViewerProps { src: string; id: string; width?: string | number; height?: string | number; thumbnailPath?: string; pdfjsLib?: any; } export const PDFViewer = (props: IPDFViewerProps) => { const { src, width, height, thumbnailPath, pdfjsLib } = props; const [fullscreen, setFullScreen] = useState(false); return ( <>