UNPKG

@wordpress/components

Version:
24 lines (22 loc) 577 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { createElement } from "@wordpress/element"; /** * WordPress dependencies */ import { forwardRef } from '@wordpress/element'; /** * Internal dependencies */ import TreeGridItem from './item'; export default forwardRef(function TreeGridCell({ children, withoutGridItem = false, ...props }, ref) { return createElement("td", _extends({}, props, { role: "gridcell" }), withoutGridItem ? children : createElement(TreeGridItem, { ref: ref }, children)); }); //# sourceMappingURL=cell.js.map