1 | import React, {PureComponent} from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import classNames from 'classnames';
|
4 |
|
5 | import style from './table.css';
|
6 |
|
7 | export default class Cell extends PureComponent {
|
8 | static propTypes = {
|
9 | children: PropTypes.any,
|
10 | className: PropTypes.string
|
11 | };
|
12 |
|
13 | render() {
|
14 | const classes = classNames(style.cell, this.props.className);
|
15 | return (
|
16 | <td
|
17 | {...this.props}
|
18 | className={classes}
|
19 | data-test="ring-table-cell"
|
20 | >{this.props.children}</td>
|
21 | );
|
22 | }
|
23 | }
|