import { Viewer, DocumentGate } from '@embedpdf/react/runtime';
import type { OpenInput } from '@embedpdf/react/runtime';
import { Stage, stagePlugin, useStageState } from '@embedpdf/react/stage';
import { RenderLayer, renderPlugin } from '@embedpdf/react/render';
import { outlinePlugin, useOutline, useOutlineState } from '@embedpdf/react/outline';
import { localEngine } from '@embedpdf/engine';
import './bookmarks.css';
const engine = localEngine();
const plugins = [stagePlugin(), renderPlugin(), outlinePlugin()];
const welcome = async (): Promise => {
const response = await fetch('https://www.embedpdf.com/pdfs/welcome.pdf');
return { kind: 'bytes', id: 'welcome', bytes: new Uint8Array(await response.arrayBuffer()) };
};
// Bookmarks the reader adds: each one goes to the place in view when it's added.
function Bookmarks() {
const outline = useOutline();
const { rows, current, selected, canEdit } = useOutlineState();
const { currentPageIndex } = useStageState();
const selectedNumber = selected[0]?.objectNumber;
return (
);
}
export default function App() {
return (
Loading…
}>
{() => }
);
}