| 12 | resource: IResource; |
| 13 | }, any> { |
| 14 | render() { |
| 15 | const { skeleton } = this.props.resource; |
| 16 | const { editorViews } = this.props.window; |
| 17 | return ( |
| 18 | <div className="workspace-resource-view"> |
| 19 | <TopArea area={skeleton.topArea} itemClassName="engine-actionitem" /> |
| 20 | <div className="workspace-editor-body"> |
| 21 | { |
| 22 | Array.from(editorViews.values()).map((editorView: any) => { |
| 23 | return ( |
| 24 | <EditorView |
| 25 | key={editorView.name} |
| 26 | active={editorView.active} |
| 27 | editorView={editorView} |
| 28 | /> |
| 29 | ); |
| 30 | }) |
| 31 | } |
| 32 | </div> |
| 33 | </div> |
| 34 | ); |
| 35 | } |
| 36 | } |