{#if view === 'collections'} Repository Explorer {:else if view === 'records'} {selectedCollection} {:else if view === 'record'} Record Detail {:else} Create Record {/if}

{#if auth.session}

{auth.session.did}

{/if}
{#if error}
{#if error.code} {error.code} {/if} {error.message}
{/if} {#if success}
{success}
{/if} {#if loading}

Loading...

{:else if view === 'collections'}
{#if collections.length === 0}

No collections yet. Create your first record to get started.

{:else}
{#each [...groupedCollections.entries()] as [authority, nsids]}

{authority}

    {#each nsids as nsid}
  • {/each}
{/each}
{/if} {:else if view === 'records'}
{#if records.length === 0}

No records in this collection.

{:else} {#if recordsCursor}
{/if} {/if} {:else if view === 'record' && selectedRecord}
URI
{selectedRecord.uri}
CID
{selectedRecord.cid}
{#if jsonError}

{jsonError}

{/if}
{:else if view === 'create'}

Leave empty to auto-generate a TID-based key

{#if jsonError}

{jsonError}

{/if}
{/if}