{#if $isCollectionsLoading && !$collections.length} Loading collections... {:else if !$collections.length} {#if $hideControls} You don't have any collections yet. {:else} Create your first collection to add records! collectionUpsertPanel?.show()} > Create new collection {/if} {:else} Collections {$activeCollection.name} {#if !$hideControls} collectionUpsertPanel?.show($activeCollection)} > {/if} recordsList?.load()} /> collectionDocsPanel?.show($activeCollection)} > API Preview {#if $activeCollection.type !== "view"} recordUpsertPanel?.show()}> New record {/if} (filter = e.detail)} /> { $activeCollection.type === "view" ? recordPreviewPanel.show(e?.detail) : recordUpsertPanel?.show(e?.detail); }} on:new={() => recordUpsertPanel?.show()} /> {/if} recordsList?.reloadLoadedPages()} on:delete={() => recordsList?.reloadLoadedPages()} />