{#if loading}
{:else if error}
{:else if enterprise}
showUpdateModal = true}
onDelete={() => showDeleteModal = true}
/>
{/if}
{#if showUpdateModal && enterprise}
showUpdateModal = false}
on:submit={(e) => handleUpdate(e.detail)}
/>
{/if}
{#if showDeleteModal && enterprise}
showDeleteModal = false}
on:confirm={handleDelete}
/>
{/if}
{#if showDeleteInstanceModal && selectedInstance}
{ showDeleteInstanceModal = false; selectedInstance = null; }}
on:confirm={handleDeleteInstance}
/>
{/if}
{#if showCreatePoolModal && enterprise}
showCreatePoolModal = false}
on:submit={handleCreatePool}
/>
{/if}