@using System.Globalization
@inherits LayoutComponentBase
@foreach (var appBarItem in AppBarService.AppBarItems)
{
@appBarItem
}
@*
*@
@if (IsDarkMode)
{
}
else
{
}
@BrandingProvider.Branding
@Body
@if (context is UnauthorizedAccessException)
{
@UnauthorizedComponent
}
else
{
@context.GetType().Name: @context.Message
}
@code {
private static bool IsRtl(CultureInfo culture)
=> culture?.TwoLetterISOLanguageName == "fa" || culture?.TextInfo?.IsRightToLeft == true;
}