I have two props in my Component: nodeTypes
prop which is of NodeType[]
type (list of node types) and second prop Nodes
which are the React components that should corresponds to node types from nodeTypes
prop (so it should be an object whose keys are NodeType
s from nodeTypes
prop). How how can set it up?