@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
27 lines (26 loc) • 1.05 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
"use client";
import * as o from "react";
import { GridContext as n } from "../../utils/GridContext.mjs";
import { cloneReactElement as t } from "../../utils/index.mjs";
import { useHierarchyCellClientTdProps as c } from "./useHierarchyCellClientTdProps.mjs";
import { useLegacyCellProps as s } from "../hooks.mjs";
const P = (e) => {
const i = o.useContext(n), r = c(e.cellProps), l = s(e.cellProps);
return e.isCustom && (i.isClient || e.isClient) ? t(e.children, {
// pass down to tdProps for client templates
tdProps: { ...e.tdProps, ...r },
...l
}) : e.children && t(e.children, {
...r
});
};
export {
P as GridHierarchyCellServerContainer
};