1 | import React, {PureComponent} from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import classnames from 'classnames';
|
4 |
|
5 | import styles from './list.css';
|
6 |
|
7 | /**
|
8 | * @constructor
|
9 | * @extends {ReactComponent}
|
10 | */
|
11 | export 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 | }
|