@if (isDisplayable)
{
    @ChildContent
}

@code {

    [Parameter] public RenderFragment ChildContent { get; set; } = default!;

    [Parameter] public WebDeploymentType DeploymentType { get; set; }

    [Inject] public NavigationManager MyNavigationManager { get; set; } = default!;

    bool isDisplayable;

    protected override void OnInitialized()
    {
        isDisplayable = DeploymentType == WebDeploymentModel.DeploymentType;
    }

}