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
17 lines
639 B
Plaintext
17 lines
639 B
Plaintext
/**
|
|
* Renders a CustomComponent or a Fallback component.
|
|
* Only fallback if the Custom Component is undefined.
|
|
*
|
|
* If the CustomComponent is null, render null.
|
|
*
|
|
* @param {Object} args - Arguments object.
|
|
* @param {React.ReactNode} [args.CustomComponent] - Optional custom component to render.
|
|
* @param {React.ReactNode} args.Fallback - Fallback component to render if CustomComponent is undefined.
|
|
* @returns {React.ReactNode} Rendered component.
|
|
*/export function RenderCustomComponent({
|
|
CustomComponent,
|
|
Fallback
|
|
}) {
|
|
return CustomComponent !== undefined ? CustomComponent : Fallback;
|
|
}
|
|
//# sourceMappingURL=index.js.map |