@j2inn/app-react
Version:
React implementation of the j2inn-app framework
11 lines (10 loc) • 551 B
JavaScript
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
import { RemoteResources } from './RemoteResources';
import { RemoteView } from './RemoteView';
export const RemoteAppViewRenderer = ({ view, appProps, }) => {
const path = view.reactComponentPath ?? view.webComponentPath;
if (!path) {
return _jsx(_Fragment, {});
}
return (_jsx(RemoteResources, { urls: view.resourcesUrls, children: _jsx(RemoteView, { isReactComponent: !!view.reactComponentPath, path: path, view: view, ...appProps }) }));
};