@enonic/react-components
Version:
Library of React components for handling Enonic XP data and page components
13 lines (12 loc) • 604 B
TypeScript
import { COMPONENT_DATA_TYPE } from '../constants';
import { RequestMode, type LiteralUnion } from '@enonic-types/core';
import * as React from 'react';
import { ReactNode } from 'react';
type ProcessedDataType = `${COMPONENT_DATA_TYPE}`;
export interface ComponentWrapperProps {
children: ReactNode | undefined;
type: ProcessedDataType;
mode: LiteralUnion<RequestMode>;
}
export declare const ComponentWrapper: ({ mode, type, children }: ComponentWrapperProps) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
export {};