So far made InfoPanelSwitchButton which shows/hides InfoPanel and manages that state.
Passing onClose to InfoPanel together with all the props received from above seems to couple the two too tightly
Could just isolate the panel that accepts the onClose, title and perhaps some size limitations, and then a list of children.
This is already used in both InventoryList and InfoPanel
So far made InfoPanelSwitchButton which shows/hides InfoPanel and manages that state. Passing onClose to InfoPanel together with all the props received from above seems to couple the two too tightly