import { useFormState } from '@embedpdf/react/form'; import { Toolbar } from '@embedpdf/react/toolbar'; import { formBar, mainBar } from './bars'; import { renderCommand } from './render-command'; export function ModeToolbar() { // The form bar while the form is designed: under `form-edit` and every field tool. const { designing } = useFormState(); const bar = designing ? formBar : mainBar; return ; }