@namespace Oqtane.Themes.Controls
@inherits ContainerBase
@attribute [OqtaneIgnore]

@if (PageState.EditMode && UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.PermissionList) && PageState.Action == Constants.DefaultAction)
{
    @if (PageState.RenderMode == RenderModes.Interactive)
    {
        <ModuleActionsInteractive PageState="@PageState" ModuleState="@ModuleState" />
    }
    else
    {
        <ModuleActionsInteractive PageState="@PageState" ModuleState="@ModuleState" @rendermode="@InteractiveRenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)" />
    }
}
