@namespace Connected.Components
@inherits UIComponent

@implements IAsyncDisposable

@if (Parent?.KeepPanelsAlive == true)
{
    <div @attributes="CustomAttributes" class="@AdditionalClassList" style="display:@(Parent?.ActivePanel == this ? "contents" : "none");">
        @ChildContent
    </div>
}
else
{
    @if (Parent?.ActivePanel == this)
    {
        @ChildContent
    }
}
