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

24 lines
462 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'
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>
)
}
}