import { Button, useCommand } from '@embedpdf/viewer-react'; import { useStageState } from '@embedpdf/react/stage'; export function ZoomPill() { const { zoomLevel } = useStageState(); const fitWidth = useCommand('zoom:fit-width'); return (