lbry-desktop/ui/js/component/notice.js

21 lines
413 B
JavaScript
Raw Normal View History

import React from 'react';
2017-05-17 10:10:25 +02:00
export class Notice extends React.Component {
static propTypes = {
isError: React.PropTypes.bool,
2017-05-17 10:10:25 +02:00
}
static defaultProps = {
isError: false,
}
render() {
return (
<section className={'notice ' + (this.props.isError ? 'notice--error ' : '') + (this.props.className || '')}>
{this.props.children}
</section>
);
2017-05-17 10:10:25 +02:00
}
}
export default Notice;