// @flow import React from 'react'; import { createPortal } from 'react-dom'; import Tree from './Tree'; import SelectedElement from './SelectedElement'; import styles from './Components.css'; export type Props = {| portalContainer?: Element, |}; export default function Components({ portalContainer }: Props) { // TODO Flex wrappers below should be user resizable. const children = (
); return portalContainer != null ? createPortal(children, portalContainer) : children; }