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

25 lines
535 B
JavaScript
Raw Normal View History

import React from 'react'
import PropTypes from 'prop-types'
import Heading from './heading'
class BlockHeading extends React.PureComponent {
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>
)
}
}
BlockHeading.propTypes = {
title: PropTypes.string.isRequired,
}
export default BlockHeading