UNPKG

529 BJavaScriptView Raw
1import React, {PureComponent} from 'react';
2import PropTypes from 'prop-types';
3import classNames from 'classnames';
4
5import style from './table.css';
6
7export 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}