gab-social/app/javascript/gabsocial/components/divider.js
2020-03-05 10:44:17 -05:00

27 lines
555 B
JavaScript

import classnames from 'classnames/bind'
const cx = classnames.bind(_s)
export default class Divider extends PureComponent {
static propTypes = {
small: PropTypes.bool,
invisible: PropTypes.bool,
}
render() {
const { small, invisible } = this.props
const classes = cx({
default: 1,
borderBottom1PX: !invisible,
borderColorSecondary2: !invisible,
width100PC: 1,
marginBottom15PX: !small,
marginVertical10PX: small || invisible,
})
return (
<div className={classes} />
)
}
}