@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
21 lines (20 loc) • 670 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as t from "react";
const n = () => null, r = ({ children: e }) => e, s = (e) => {
if (e) {
if (e === t.Fragment)
return [r, {}];
if (t.isValidElement(e))
return [e.type, e.props];
} else return [n, {}];
return [e, {}];
};
export {
s as useCustomComponent
};