// 2.x: // // import { useRef } from 'react'; // import { PDFViewer, type CommandsPlugin, type PDFViewerRef } from '@embedpdf/react-pdf-viewer'; // // export function Review() { // const viewerRef = useRef(null); // const print = async () => { // const registry = await viewerRef.current?.registry; // registry?.getPlugin('commands')?.provides().execute('document:print'); // }; // return ( // <> // // // // ); // } import { useState } from 'react'; import { PDFViewer, type Viewer } from '@embedpdf/viewer-react'; export function Review() { const [viewer, setViewer] = useState(null); return ( <> ); }