gab-social/app/javascript/gabsocial/components/column.js

22 lines
393 B
JavaScript
Raw Normal View History

2019-07-02 08:10:25 +01:00
import React from 'react';
import PropTypes from 'prop-types';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
label: PropTypes.string,
};
render () {
const { label, children } = this.props;
return (
<div role='region' aria-label={label} className='column'>
{children}
</div>
);
}
}