Currently, when accessing a non-existent control panel URL (e.g., /controlpanel/does-not-exist), the Controlpanel component returns an empty <div /> if the panel is not found. This provides no visual feedback to the user about the error.
Problem
- Users who type an incorrect URL or try to access a removed panel receive no indication that the panel does not exist.
- This can be confusing, as the screen remains blank with no error message.
Proposal
Change the component to explicitly render the NotFound screen (<NotFound />) when the panel is not found, instead of returning an empty <div />.
Benefits:
- Provides clear feedback to the user when a panel does not exist.
- Improves the user experience and usability of the system.