@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
24 lines (23 loc) • 1.02 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 s from "react";
import { useCellClientTdProps as m } from "./useCellClientTdProps.mjs";
import { useLegacyCellProps as u } from "../hooks.mjs";
import { getCellTdProps as C, getCustomCell as i } from "./utils.mjs";
const f = (c) => {
var n;
const { cellProps: t } = c, { tdProps: e, content: o } = C(t), l = m(t), p = u(t);
if (((n = t._rowSpan) == null ? void 0 : n.count) === null)
return null;
const r = i(t);
return r ? /* @__PURE__ */ s.createElement(r, { ...t, ...p, tdProps: { ...e, ...l } }, o) : e ? /* @__PURE__ */ s.createElement("td", { ...e, ...l }, o) : null;
};
export {
f as GridCell
};