UNPKG

@progress/kendo-react-grid

Version:

React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package

20 lines (19 loc) 986 B
/** * @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 s from "react"; import { getHierarchyCellTdProps as p, getCustomCell as m } from "./utils.mjs"; import { useHierarchyCellClientTdProps as i } from "./useHierarchyCellClientTdProps.mjs"; import { useLegacyCellProps as a } from "../hooks.mjs"; const P = (c) => { const { cellProps: e } = c, { tdProps: r, content: t } = p(e), o = i(e), n = a(e), l = m(e); return l ? /* @__PURE__ */ s.createElement(l, { ...e, ...n, tdProps: { ...r, ...o } }, t) : e.rowType !== "groupHeader" ? /* @__PURE__ */ s.createElement("td", { ...r, ...o }, t) : null; }; export { P as GridHierarchyCell };