<script setup lang="ts">
defineProps<{ hasNextPage: boolean; isLoadingMore: boolean }>();
defineEmits<{ loadMore: [] }>();
</script>

<template>
  <div v-if="hasNextPage" class="flex justify-center">
    <UButton @click="$emit('loadMore')" :loading="isLoadingMore"> En voir plus </UButton>
  </div>
</template>
