function BoolVal({ value }) { if (value === null || value === undefined) { return —; } return ( {value ? 'TRUE' : 'FALSE'} ); } function TextVal({ value, dim = false }) { if (value === null || value === undefined) { return —; } return ( {String(value).toUpperCase()} ); } function NumVal({ value }) { if (value === null || value === undefined) { return —; } return {value}; } export default function InfoBadges({ metrics, paperState, targetDef }) { const numLayers = paperState?.num_layers ?? metrics?.num_layers ?? null; const foldCount = metrics?.fold_count ?? paperState?.fold_count ?? null; return (