> ## Documentation Index
> Fetch the complete documentation index at: https://numadocs.secc.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Nav Menu

> Navigation menu component used in the `MainLayout.razor`.

Component Name: `NavMenu.razor`\
Version: `1.0.0`

## Dependencies

Services: <br />[UserService](../services/userservice), [GroupService](../services/groupservice), [AdminSettingsService](../services/adminsettingsservice)

## Variables

| Variable Name                   | Type     | Description                                                              |
| :------------------------------ | :------- | :----------------------------------------------------------------------- |
| `_uploadPermissionsGroupId`     | `string` | `Guid` of the general upload permissions group                           |
| `_userInUploadPermissionsGroup` | `bool`   | Indicates whether current user is in the general upload permission group |

## Lifecycle Methods

```csharp theme={null}
protected override async Task OnInitializedAsync()
{
    await UserService.InitializeCurrentUserAsync();

    if ( UserService.CurrentUser != null )
    {
        _userInUploadPermissionsGroup = await GroupService.UserIsInGroup( UserService.CurrentUser.Id, _uploadPermissionsGroupId );
    }
}
```
