import React, { forwardRef, RefObject, Ref, ReactNode } from 'react'; import { SchemaForUI, isTextSchema, isImageSchema, isBarcodeSchema } from '@pdfme/common'; import { ZOOM, SELECTABLE_CLASSNAME } from '../../constants'; import TextSchema from './TextSchema'; import ImageSchema from './ImageSchema'; import BarcodeSchema from './BarcodeSchema'; export interface SchemaUIProps { schema: SchemaForUI; editable: boolean; onChange: (value: string) => void; tabIndex?: number; placeholder?: string; } type Props = SchemaUIProps & { border: string; onChangeHoveringSchemaId?: (id: string | null) => void; }; const Wrapper = ({ children, border, onChangeHoveringSchemaId, schema, }: Props & { children: ReactNode }) => (