diff options
Diffstat (limited to 'code/api/Pages/Shared/Components/Header')
| -rw-r--r-- | code/api/Pages/Shared/Components/Header/Default.cshtml | 2 | ||||
| -rw-r--r-- | code/api/Pages/Shared/Components/Header/Header.cs | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/code/api/Pages/Shared/Components/Header/Default.cshtml b/code/api/Pages/Shared/Components/Header/Default.cshtml new file mode 100644 index 0000000..8234a97 --- /dev/null +++ b/code/api/Pages/Shared/Components/Header/Default.cshtml @@ -0,0 +1,2 @@ +@model Quality.Storage.Api.Pages.Shared.Components.Header.Header + diff --git a/code/api/Pages/Shared/Components/Header/Header.cs b/code/api/Pages/Shared/Components/Header/Header.cs new file mode 100644 index 0000000..ad0b75b --- /dev/null +++ b/code/api/Pages/Shared/Components/Header/Header.cs @@ -0,0 +1,11 @@ +namespace Quality.Storage.Api.Pages.Shared.Components.Header; + +public class Header(IStringLocalizer<SharedResources> localizer) : ViewComponent +{ + public string Home { get; set; } + private readonly IStringLocalizer<SharedResources> _localizer = localizer; + + public async Task<IViewComponentResult> InvokeAsync() { + return View(); + } +} |
