import { useState } from 'react';
import { Viewer, DocumentGate } from '@embedpdf/react/runtime';
import type { OpenInput } from '@embedpdf/react/runtime';
import { Stage, stagePlugin } from '@embedpdf/react/stage';
import { RenderLayer, renderPlugin } from '@embedpdf/react/render';
import { interactionPlugin } from '@embedpdf/react/interaction';
import {
commandsPlugin,
standardCommands,
useCommand,
useCommands,
} from '@embedpdf/react/commands';
import { localEngine } from '@embedpdf/engine';
import './palette.css';
const engine = localEngine();
const plugins = [
stagePlugin(),
renderPlugin(),
interactionPlugin(),
commandsPlugin({ commands: standardCommands }),
];
// [!doc-source welcome]
const welcome = async (): Promise
{results.map((command) => (