import { divergingColor } from './scale'; /** Inline style for heat-table cells (diverging change). */ export function heatStyle(change: number | null | undefined, limit = 0.1): React.CSSProperties { if (change === null || change === undefined) return {}; return { background: divergingColor(change, limit) }; }