blob: 28e9d9792b4a73213a8b8f3d10563589b438348f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { observer } from 'mobx-react';
import * as React from 'react';
import './ComponentDecorations.scss';
import { DocumentView } from './nodes/DocumentView';
@observer
export class ComponentDecorations extends React.Component<{ boundsTop: number; boundsLeft: number }, { value: string }> {
render() {
return DocumentView.Selected().map(seldoc => seldoc?.ComponentView?.componentUI?.(this.props.boundsLeft, this.props.boundsTop) ?? null);
}
}
|