From eb82d0873b420108067687a8634f1aaf76ceb1a4 Mon Sep 17 00:00:00 2001 From: pepper Date: Thu, 14 Jan 2021 00:09:21 -0500 Subject: [PATCH] Added base messagebox --- src/components/actions/Msgbox.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/components/actions/Msgbox.js diff --git a/src/components/actions/Msgbox.js b/src/components/actions/Msgbox.js new file mode 100644 index 0000000..7fdfe84 --- /dev/null +++ b/src/components/actions/Msgbox.js @@ -0,0 +1,20 @@ +import React from "react"; +// // Generic Msgbox + +function Msgbox(props) { + return
+
+
+
+ + { props.error ? { "Unable to update: " + props.error } : null } + { props.msg ? { "Updated migration details for: " + props.msg } : null } + { props.linkid ? {"https://devui.benjamyn.love/migrations/" + props.linkid } : null } + +
+
+
+
; + } + +export default Msgbox;