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-02-19 23:57:07 +00:00
|
|
|
import Text from './text'
|
|
|
|
|
2020-08-18 01:57:35 +01:00
|
|
|
class SidebarSectionTitle extends React.PureComponent {
|
2020-02-19 23:57:07 +00:00
|
|
|
|
|
|
|
render() {
|
|
|
|
const { children } = this.props
|
|
|
|
|
|
|
|
return (
|
2020-08-18 21:49:11 +01:00
|
|
|
<div className={[_s.d, _s.py5, _s.px10, _s.mt10].join(' ')}>
|
2020-04-29 23:32:49 +01:00
|
|
|
<Text color='tertiary'>
|
2020-02-19 23:57:07 +00:00
|
|
|
{children}
|
|
|
|
</Text>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-08-18 01:57:35 +01:00
|
|
|
|
|
|
|
SidebarSectionTitle.propTypes = {
|
|
|
|
children: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SidebarSectionTitle
|