aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/ComponentDecorations.tsx
diff options
context:
space:
mode:
authorvkalev <vjk1883@gmail.com>2021-09-03 13:18:46 -0400
committervkalev <vjk1883@gmail.com>2021-09-03 13:18:46 -0400
commit15bc374105eb7c55493d9ca6c2b12f9bf22735c9 (patch)
treef08ffe9ef4f7155f026e0a5362033990ff8b13f7 /src/client/views/ComponentDecorations.tsx
parent8ab10535c0fa07247f88902089ffc23f56a22d7d (diff)
adding ComponentDecorations
Diffstat (limited to 'src/client/views/ComponentDecorations.tsx')
-rw-r--r--src/client/views/ComponentDecorations.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/views/ComponentDecorations.tsx b/src/client/views/ComponentDecorations.tsx
new file mode 100644
index 000000000..66f81fe4f
--- /dev/null
+++ b/src/client/views/ComponentDecorations.tsx
@@ -0,0 +1,14 @@
+import { observer } from "mobx-react";
+import { SelectionManager } from "../util/SelectionManager";
+import './ComponentDecorations.scss';
+import React = require("react");
+
+@observer
+export class ComponentDecorations extends React.Component {
+ static Instance: ComponentDecorations;
+
+ render() {
+ const seldoc = SelectionManager.Views().lastElement();
+ return seldoc?.ComponentView?.componentUI?.() ?? (null);
+ }
+} \ No newline at end of file