@using DeepDrftPublic.Client @using DeepDrftPublic.Client.Common @using DeepDrftPublic.Services @using DeepDrftShared.Client.Components @code { [Inject] public required DarkModeService DarkModeService { get; set; } [Inject] public required SeoEnvironment SeoEnvironment { get; set; } [Inject] public required IWebHostEnvironment HostEnvironment { get; set; } protected override void OnInitialized() { base.OnInitialized(); DarkModeService.CheckDarkMode(); // Seed the environment-gated robots bridge during prerender; [PersistentState] rounds it to WASM // so both render passes resolve the same default robots (Production → index, else noindex). SeoEnvironment.IsProduction = HostEnvironment.IsProduction(); } }