@using Oqtane.Shared @DynamicComponent @functions { [CascadingParameter] PageState PageState { get; set; } RenderFragment DynamicComponent { get; set; } protected override void OnInit() { DynamicComponent = builder => { Type skinType = Type.GetType(PageState.Page.SkinType); if (skinType != null) { builder.OpenComponent(0, skinType); builder.CloseComponent(); } else { // skin does not exist with type specified } }; } }