import React from 'react'; import { RowChildrenProps } from '../../types'; const RowChildren = (props: RowChildrenProps) => { return ( <> {props.columns.map((column, columnIndex) => { const CellRenderer = column.cellRenderer; const adjustedColumnIndex = props.columnIndexOffset ? props.columnIndexOffset + columnIndex : columnIndex; return (
{CellRenderer ? ( ) : (
{props.rowData[column.dataKey]}
)}
); })} ); }; export default React.memo(RowChildren);