import React, { Component } from 'react';


//TODO modes
//TODO icon
//TODO default texts

export const MODE_EMPTY = "empty";

export const MODE_ERROR = "error";


class ListMessagePanel extends Component {

	render() {
		return (
			<div className={ `message-panel ${ this.props.size || 'normal' } list` }>
				<div>
					<h2>{ this.props.title }</h2>
					{ this.props.text ? <div>{ this.props.text }</div> : null }
					{ this.props.children ? <div>{ this.props.children }</div> : null }
				</div>
			</div>
		);
	}

}


export default ListMessagePanel;