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

25 lines
430 B
JavaScript
Raw Normal View History

import React from 'react'
import PropTypes from 'prop-types'
2020-04-23 07:13:29 +01:00
/**
* Renders a block component
*/
class Block extends React.PureComponent {
2020-04-08 02:06:59 +01:00
2020-02-22 23:26:23 +00:00
render() {
const { children } = this.props
return (
<div className={[_s._, _s.boxShadowBlock, _s.bgPrimary, _s.overflowHidden, _s.radiusSmall].join(' ')}>
2020-02-22 23:26:23 +00:00
{children}
</div>
)
}
2020-04-08 02:06:59 +01:00
}
Block.propTypes = {
children: PropTypes.any,
}
export default Block