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 (
fold_count
num_layers
is_valid
strain_exceeded
is_deployable
{targetDef && ( <>
level LVL {targetDef.level}
material
task {(targetDef.name || '').replace(/_/g, ' ').toUpperCase()}
)}
); }