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

20 lines
368 B
JavaScript
Raw Normal View History

2020-04-23 07:13:29 +01:00
/**
* Renders a block component
*/
2020-02-22 23:26:23 +00:00
export default class Block extends PureComponent {
2020-04-08 02:06:59 +01:00
static propTypes = {
2020-04-23 07:13:29 +01:00
children: PropTypes.any,
2020-04-08 02:06:59 +01:00
}
2020-02-22 23:26:23 +00:00
render() {
const { children } = this.props
return (
2020-04-29 23:32:49 +01:00
<div className={[_s.default, _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
2020-02-22 23:26:23 +00:00
}