All the panels for displaying information about scene nodes use a tabbed panel UX. And they all have boilerplate for selecting the tab. We have a couple of way to clean this up:
Create a react hook. This is my preferred options.
Create a reusable tabbed component which encapsulated view selection state.
All the panels for displaying information about scene nodes use a tabbed panel UX. And they all have boilerplate for selecting the tab. We have a couple of way to clean this up: