import React from 'react' import Paragraph from './Paragraph' import colors from '../config/colors' import { fontSizes, margins } from '../config/scales' class MessagePanel extends React.Component { static propTypes = { errors: React.PropTypes.array, infos: React.PropTypes.array, } render() { const paragraphStyle = { margin: 0, lineHeight: 1.2, } const errors = this.props.errors.map((m, i) => { return {m} }) const infos = this.props.infos.map((m, i) => { return {m} }) return
{errors} {infos}
} } export default MessagePanel