import React from 'react'; import { get } from 'lodash'; import { getForceWidth } from 'utils'; export function CellForceWidth({ value, column: { forceWidthAccess }, row: { original }, }) { const forceWidthValue = forceWidthAccess ? get(original, forceWidthAccess) : value; return {value}; } export function ForceWidth({ children, forceValue }) { const forceWidthValue = forceValue || children; return ( {children} ); }