pleroma/app/gabsocial/features/ui/components/explanation_box.js
2020-04-14 15:45:38 -05:00

20 lines
501 B
JavaScript

import React from 'react';
export default
class ExplanationBox extends React.PureComponent {
render() {
const { title, explanation, dismissable } = this.props;
return (
<div className='explanation-box'>
{title && <div className='explanation-box__title'>{title}</div>}
<div className='explanation-box__explanation'>
{explanation}
{dismissable && <span className='explanation-box__dismiss'>Dismiss</span>}
</div>
</div>
);
}
}