2017-06-26 22:27:55 +00:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
type Props = {
|
2017-07-02 05:49:06 +00:00
|
|
|
message?: {
|
|
|
|
to: string,
|
|
|
|
msg: string
|
|
|
|
}
|
2017-06-26 22:27:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function CustomMessage(props: Props) {
|
2017-07-02 05:49:06 +00:00
|
|
|
return (
|
|
|
|
<div className="clearfix form-group">
|
|
|
|
{!!props.message &&
|
|
|
|
<div className="alert alert-info col-xs-12 clearfix">
|
|
|
|
<p><small>A message from {props.message.to}</small></p>
|
|
|
|
<p><strong>{props.message.msg}</strong></p>
|
|
|
|
</div>}
|
|
|
|
</div>
|
|
|
|
);
|
2017-06-26 22:27:55 +00:00
|
|
|
}
|