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
18 lines
695 B
Plaintext
18 lines
695 B
Plaintext
type Args = {
|
|
CustomComponent?: React.ReactNode;
|
|
Fallback: React.ReactNode;
|
|
};
|
|
/**
|
|
* 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 declare function RenderCustomComponent({ CustomComponent, Fallback }: Args): React.ReactNode;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |