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 (
|
|
|
|
<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
|
|
|
}
|