In .NET 6, there was the environment component to check for current environment. The following code sample is taken from a vanilla Blazor Server project using .NET 6
<environment include="Staging,Production"> An error has occurred. This application may no longer respond until reloaded.</environment><environment include="Development"> An unhandled exception has occurred. See browser dev tools for details.</environment>This native component would conditionally render the children based on if the current environment name matches whats given in the include parameter.
It does not seem like Blazor with .NET 8 has this component. Is there a new one or should I just go ahead and make my own? I can easily make my own, but if a new one exist that does this there is no reason for me to make another.