@using Microsoft.AspNetCore.Mvc.ViewFeatures
@using TestRibbon.Services
@inject IFileVersionProvider FileVersionProvider
@inject DxThemesService ThemesService

<!DOCTYPE html>
<html lang="en" data-bs-theme="@(ThemesService.IsBootstrapDarkActive ? "dark" : null)" data-fluent-darkmode="@(ThemesService.IsFluentDarkModeActive ? "" : null)">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="/" />
    @DxResourceManager.RegisterTheme(ThemesService.ActiveTheme)
    @DxResourceManager.RegisterScripts()
    <link href=@AppendVersion("css/site.css") rel="stylesheet" />
    <link href=@AppendVersion("TestRibbon.styles.css") rel="stylesheet" />
    <HeadOutlet />
</head>
<body class="@(ThemesService.IsFluentActive ? "dxbl-theme-fluent" : null)">
    <Routes />
    <script src="_framework/blazor.web.js"></script>
</body>

</html>

@code{
    private string AppendVersion(string path) => FileVersionProvider.AddFileVersionToPath("/", path);
}