{#snippet modelEntry(model: Model | CustomModel, trending?: boolean)} {@const [nameSpace, modelName] = model.id.split("/")} {/snippet} Edit {/if} {/snippet} {#if trending.length > 0}
Trending
{#each trending as model} {@render modelEntry(model, true)} {/each} {/if}
Custom endpoints
{#if custom.length > 0} {#each custom as model} {@render modelEntry(model, false)} {/each} {/if} {#if other.length > 0}
Other models
{#each other as model} {@render modelEntry(model, false)} {/each} {/if}