Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import PropTypes from 'prop-types';
import { PureComponent } from 'react';
export default class extends PureComponent {
static displayName = 'StatsListLegend';
static propTypes = {
value: PropTypes.string,
label: PropTypes.string,
};
render() {
const { value, label } = this.props;
let valueSpan;
if ( value ) {
valueSpan = (
<span className="module-content-list-item-right">
<span className="module-content-list-item-value">{ value }</span>
</span>
);
}
return (
<ul className="module-content-list module-content-list-legend">
<li className="module-content-list-item">
<span className="module-content-list-item-wrapper">
{ valueSpan }
<span className="module-content-list-item-label">{ label }</span>
</span>
</li>
</ul>
);
}
}