gab-social/app/javascript/gabsocial/components/block.js
2020-04-23 02:13:29 -04:00

20 lines
401 B
JavaScript

/**
* Renders a block component
*/
export default class Block extends PureComponent {
static propTypes = {
children: PropTypes.any,
}
render() {
const { children } = this.props
return (
<div className={[_s.default, _s.backgroundColorPrimary, _s.overflowHidden, _s.radiusSmall, _s.borderColorSecondary, _s.border1PX].join(' ')}>
{children}
</div>
)
}
}