2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-08-07 05:08:32 +01:00
|
|
|
import Heading from './heading'
|
|
|
|
|
2020-08-18 01:57:35 +01:00
|
|
|
class BlockHeading extends React.PureComponent {
|
2020-08-07 05:08:32 +01:00
|
|
|
|
|
|
|
render() {
|
|
|
|
const { title } = this.props
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={[_s.default, _s.px15, _s.py10].join(' ')}>
|
|
|
|
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
|
|
|
<Heading size='h2'>{title}</Heading>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-08-18 01:57:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
BlockHeading.propTypes = {
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default BlockHeading
|