johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import type { Paged } from '#lib/pages.svelte.ts';
/** The way to the page after those of `pages` shown: a link to it, which adds it below them when followed here, or opens it on its own in a new tab. */
let { pages, label }: { pages: Paged<unknown>; label: string } = $props();
function click(e: MouseEvent) {
if (e.button || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
e.preventDefault();
pages.next();
}
</script>
{#if pages.href}<div class="more">
<a class="btn" href={pages.href} aria-busy={pages.busy} onclick={click}
>{pages.busy ? 'Loading…' : label}</a
>
</div>{/if}