@enonic/react-components
Version:
Library of React components for handling Enonic XP data and page components
4 lines (3 loc) • 347 B
TypeScript
import type { DOMNode } from 'html-react-parser';
import type { CreateReplacerParams, ReplacerResult } from '../types';
export declare function createReplacer<RestProps = Record<string, unknown>>({ componentRegistry, data, Image, Link, Macro, mode, replacer, ...restProps }: CreateReplacerParams<RestProps>): (domNode: DOMNode) => ReplacerResult;