renderMessages (messages, type) {
		if (!messages || !messages.length) return null;

		return messages.map((message, i) => {
			return <FlashMessage message={message} type={type} key={`i${i}`} />;
		});
	}
Render a few flash messages, e.g. errors, success messages, warnings,...

Use like this:
<FlashMessages
  messages={{
	   error: [{
	     title: 'There is a network problem',
	     detail: 'Please try again later...',
	   }],
  }}
/>

Instead of error, it can also be hilight, info, success or warning