When using the addEditViewSidePanel API to add custom panels to the Content Manager Edit View sidebar, the API expects a panel component to always return an object with a title and content. If I want the panel to appear only for specific, dynamic content types, returning null (or not returning the object) for unwanted types still results in an empty panel with the default border and title being rendered. There is no documented way to completely prevent the panel from rendering for certain content types.
It would be helpful to have a way to conditionally hide the panel entirely based on the content type, rather than just rendering an empty panel.