Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
14 lines
291 B
Plaintext
14 lines
291 B
Plaintext
// src/functions.ts
|
|
import * as React from "react";
|
|
function renderFn({ Component, props, renderCustom }) {
|
|
if (renderCustom && typeof renderCustom === "function") {
|
|
return renderCustom(props);
|
|
} else {
|
|
return React.createElement(Component, props);
|
|
}
|
|
}
|
|
|
|
export {
|
|
renderFn
|
|
};
|