@page "/clusters/{ClusterId}/namespaces/new"
@page "/clusters/{ClusterId}/namespaces/{NamespaceId}"
@attribute [Authorize(Policy = AdminUiPolicies.ConfigEditor)]
@rendermode RenderMode.InteractiveServer

<div class="d-flex justify-content-between align-items-center mb-3">
    <h4 class="mb-0">Namespaces &middot; <span class="mono">@ClusterId</span></h4>
    <a href="/clusters/@ClusterId/namespaces" class="btn btn-outline-secondary btn-sm">Back</a>
</div>

<ClusterNav ClusterId="@ClusterId" ActiveTab="namespaces" />

<section class="panel notice rise" style="animation-delay:.02s">
    <div class="panel-head">Namespaces are retired in v3</div>
    <div style="padding:1rem">
        The <code>Namespace</code> entity has been removed. The v3 Raw/UNS split replaces it —
        raw driver folders and the unified namespace are managed on the <strong>/raw</strong> and
        <strong>/uns</strong> pages, arriving in v3 Batch 2/3. This editor no longer applies.
    </div>
</section>

@code {
    [Parameter] public string ClusterId { get; set; } = "";
    [Parameter] public string? NamespaceId { get; set; }
}
