@inherits LoadedComponent
@inject ShellData Shell
@code {
private string? _theme;
protected override async Task LoadAsync()
{
var snapshot = await Shell.SnapshotAsync(CancellationToken.None);
_theme = snapshot.Theme == "auto" ? null : snapshot.Theme;
}
}