@inherits MSGComponentBase
@* One element around everything, so that a layout around the viewer can give it its place. *@
@if (this.cutOffCharacters > 0 && this.CutOffNotice is not null)
{
@this.CutOffNotice(this.cutOffCharacters)
}
@this.Toolbar
@if (this.views.Count > 1)
{
@foreach (var offeredView in this.views)
{
}
}
@* MathJax leaves this alone, even when something else on the page has it typeset everything:
it would replace elements Blazor renders here, and the next render of them would fail. *@
@switch (this.view)
{
case ContentView.MEDIA:
break;
case ContentView.FORMATTED:
break;
default:
@this.shownText
break;
}
@if (!string.IsNullOrWhiteSpace(this.HelperText))
{
@this.HelperText
}