import React from "react"; import { observer } from "mobx-react"; import { ProjectContext } from "project-editor/project/context"; import { EditorComponent } from "project-editor/project/ui/EditorComponent"; import { IPanel } from "project-editor/store"; import { PropertyGrid } from "project-editor/ui-components/PropertyGrid"; export const BB3ModuleMetadataEditor = observer( class BB3ModuleMetadataEditor extends EditorComponent implements IPanel { static contextType = ProjectContext; declare context: React.ContextType; divRef = React.createRef(); componentDidMount() { if (this.divRef.current) { this.divRef.current.focus(); } this.context.navigationStore.mountPanel(this); } componentWillUnmount() { this.context.navigationStore.unmountPanel(this); } // interface IPanel implementation get selectedObject() { return undefined; } onFocus = () => { this.context.navigationStore.setSelectedPanel(this); }; render() { return (
); } } );