this component looks exactly like something we need in the future. Our use case is very specific in which we want to hide sub-categories from one specific parent category.
In combination with the code snippet from here this might achieve exactly what we are looking for: