@mui/x-data-grid-premium
Version:
The Premium plan edition of the data grid component (MUI X).
20 lines (17 loc) • 682 B
JavaScript
import * as React from 'react';
import Box from '@mui/material/Box';
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
import { jsx as _jsx } from "react/jsx-runtime";
var GridGroupingColumnLeafCell = function GridGroupingColumnLeafCell(props) {
var _props$formattedValue;
var rowNode = props.rowNode;
var rootProps = useGridRootProps();
var marginLeft = rootProps.rowGroupingColumnMode === 'multiple' ? 1 : rowNode.depth * 2;
return /*#__PURE__*/_jsx(Box, {
sx: {
ml: marginLeft
},
children: (_props$formattedValue = props.formattedValue) != null ? _props$formattedValue : props.value
});
};
export { GridGroupingColumnLeafCell };