<script lang="ts">
  let { list, query_offset = 'offset' } = $props();
</script>

{#if list.offset > 0}
  <a href="?{query_offset}={Math.max(0, list.offset - list.limit)}">Previous</a>
{/if}
{#if list.more}
  <a href="?{query_offset}={list.offset + list.limit}">Next</a>
{/if}
