<MudDialog>
    <TitleContent>
        <MudText Typo="Typo.h6">
            Browse Archive
        </MudText>
    </TitleContent>

    <DialogContent>
        <ArchiveBrowser ArchiveId="ArchiveId" />
    </DialogContent>
</MudDialog>

@code {
    [CascadingParameter] MudDialogInstance MudDialog { get; set; }
    [Parameter] public Guid ArchiveId { get; set; }

    protected override async Task OnInitializedAsync()
    {
        MudDialog.Options.MaxWidth = MaxWidth.Large;
        MudDialog.Options.FullWidth = true;
        MudDialog.Options.FullScreen = true;
        MudDialog.Options.CloseButton = true;
        MudDialog.Options.CloseOnEscapeKey = true;

        MudDialog.SetOptions(MudDialog.Options);
    }

    private void Cancel()
    {
        MudDialog.Cancel();
    }
}