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

25 lines
483 B
JavaScript
Raw Normal View History

import React from 'react'
import PropTypes from 'prop-types'
2020-02-19 23:57:07 +00:00
import Text from './text'
class SidebarSectionTitle extends React.PureComponent {
2020-02-19 23:57:07 +00:00
render() {
const { children } = this.props
return (
<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>
)
}
}
SidebarSectionTitle.propTypes = {
children: PropTypes.string.isRequired,
}
export default SidebarSectionTitle