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

17 lines
365 B
JavaScript
Raw Normal View History

2020-02-22 23:26:23 +00:00
export default class Block extends PureComponent {
2020-04-08 02:06:59 +01:00
static propTypes = {
children: PropTypes.node,
}
2020-02-22 23:26:23 +00:00
render() {
const { children } = this.props
return (
<div className={[_s.default, _s.backgroundColorPrimary, _s.overflowHidden, _s.radiusSmall, _s.borderColorSecondary, _s.border1PX].join(' ')}>
{children}
</div>
)
}
2020-04-08 02:06:59 +01:00
2020-02-22 23:26:23 +00:00
}