31 lines
681 B
JavaScript
31 lines
681 B
JavaScript
|
/**
|
||
|
* MaterialStatus: like a Status, but with gaps and rounded corners.
|
||
|
*/
|
||
|
|
||
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import StatusContainer from 'soapbox/containers/status_container';
|
||
|
|
||
|
export default class MaterialStatus extends React.Component {
|
||
|
|
||
|
static propTypes = {
|
||
|
hidden: PropTypes.bool,
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
// Performance: when hidden, don't render the wrapper divs
|
||
|
if (this.props.hidden) {
|
||
|
return <StatusContainer {...this.props} />;
|
||
|
}
|
||
|
|
||
|
return (
|
||
|
<div className='material-status'>
|
||
|
<div className='material-status__status'>
|
||
|
<StatusContainer {...this.props} />
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|