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-17 21:07:16 +01:00
|
|
|
export default class SidebarSectionTitle extends React.PureComponent {
|
2020-02-19 23:57:07 +00:00
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
children: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const { children } = this.props
|
|
|
|
|
|
|
|
return (
|
2020-03-11 23:56:18 +00:00
|
|
|
<div className={[_s.default, _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>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|