{#if schema.type === "collection"} {#if !inModal && isWritable}
New Record
{/if} {:else}
{/if} {#if !inModal}
{#if filter["status_in"] === "trashed"} {#if isWritable}
Empty trash
{/if} {:else}
Export to CSV
View trashed records
View unlinked records
{/if}
{/if}
{#if Object.entries(filter).length > 0} {#each Object.entries(filter) as [k, v]}
{/each} {/if}