@namespace Oqtane.Themes
@inherits ContainerBase
@inject NavigationManager NavigationManager

<div class="app-admin-modal">
    <div class="modal" tabindex="-1" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"><ModuleTitle /></h5>
                    <button type="button" class="close" @onclick="CloseModal" aria-label="Close">&times;</button>
                </div>
                <div class="modal-body">
                    <ModuleInstance />
                </div>
            </div>
        </div>
    </div>
</div>

@code {
    private void CloseModal()
    {
        NavigationManager.NavigateTo(NavigateUrl());
    }
}

