UNPKG

552 BJavaScriptView Raw
1import React, {PureComponent} from 'react';
2import PropTypes from 'prop-types';
3import classnames from 'classnames';
4
5import styles from './list.css';
6
7/**
8 * @constructor
9 * @extends {ReactComponent}
10 */
11export default class ListHint extends PureComponent {
12 static propTypes = {
13 label: PropTypes.oneOfType([
14 PropTypes.element,
15 PropTypes.string
16 ])
17 };
18
19 render() {
20 return (
21 <span
22 className={classnames(styles.item, styles.hint)}
23 data-test="ring-list-hint"
24 >{this.props.label}</span>
25 );
26 }
27}