Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
644 B
Plaintext
24 lines
644 B
Plaintext
import { jsx as _jsx } from "react/jsx-runtime";
|
|
import { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent';
|
|
import React from 'react';
|
|
export function NestProviders({
|
|
children,
|
|
importMap,
|
|
providers,
|
|
serverProps
|
|
}) {
|
|
return RenderServerComponent({
|
|
clientProps: {
|
|
children: providers.length > 1 ? /*#__PURE__*/_jsx(NestProviders, {
|
|
importMap: importMap,
|
|
providers: providers.slice(1),
|
|
serverProps: serverProps,
|
|
children: children
|
|
}) : children
|
|
},
|
|
Component: providers[0],
|
|
importMap,
|
|
serverProps
|
|
});
|
|
}
|
|
//# sourceMappingURL=NestProviders.js.map |