<script setup>
    import { PaginationList } from 'reka-ui';
    import { cn } from '@/lib/utils';
    import { reactiveOmit } from '@vueuse/core';

    const props = defineProps({
        asChild: { type: Boolean, required: false },
        as: { type: null, required: false },
        class: { type: null, required: false }
    });

    const delegatedProps = reactiveOmit(props, 'class');
</script>

<template>
    <PaginationList
        v-slot="slotProps"
        data-slot="pagination-content"
        v-bind="delegatedProps"
        :class="cn('flex flex-row items-center gap-1', props.class)">
        <slot v-bind="slotProps" />
    </PaginationList>
</template>
