Added base messagebox

This commit is contained in:
pepper 2021-01-14 00:09:21 -05:00
parent d3fd463a15
commit eb82d0873b

View File

@ -0,0 +1,20 @@
import React from "react";
// // Generic Msgbox
function Msgbox(props) {
return <div>
<div className="card-panel grey darken-1">
<div className="card-content white-link">
<center>
<span className="card-title">
{ props.error ? <span> { "Unable to update: " + props.error } </span> : null }
{ props.msg ? <span className="white-text">{ "Updated migration details for: " + props.msg }</span> : null }
{ props.linkid ? <a href={ "https://devui.benjamyn.love/migrations/" + props.linkid } className="white-link">{"https://devui.benjamyn.love/migrations/" + props.linkid }</a> : null }
</span>
</center>
</div>
</div>
</div>;
}
export default Msgbox;