UI/Story/SubtitlePanel.razor
@using Sandbox;
@using Sandbox.UI;

@namespace Opium.UI
@inherits PanelComponent

<root>
</root>

@code
{
    public void Insert( Subtitle subtitle )
    {
        if (Panel is null )
        {
            Log.Warning("Trying to add subtitle before panel is created");
            return;
        }

        var pnl = new SubtitleEntryPanel(subtitle);
        
        Log.Info($"adding {subtitle} {pnl}");

        Panel.AddChild( pnl );
    }
}