update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b third try
[osm/UI.git] / skyquake / plugins / admin / src / components / LoadingCard.jsx
diff --git a/skyquake/plugins/admin/src/components/LoadingCard.jsx b/skyquake/plugins/admin/src/components/LoadingCard.jsx
new file mode 100644 (file)
index 0000000..c3ce4cd
--- /dev/null
@@ -0,0 +1,21 @@
+import React from 'react'
+import ColumnCard from './ColumnCard'
+
+class LoadingCard extends React.Component {
+    render() {
+        try {
+            const { model, path } = this.props;
+            const name = model.getElement(path).name;
+            console.debug(`LoadingCard: ${name}`);
+            return (
+                <ColumnCard path={path}>
+                    <div>{`Loading ${name}`}</div>
+                </ColumnCard>
+            )
+        } catch (e) {
+            console.error("component render", e);
+        }
+    }
+}
+
+export default LoadingCard
\ No newline at end of file