'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import React from 'react';
import { useListQuery } from '../../providers/ListQuery/index.js';
import { Pagination } from '../Pagination/index.js';
export const RelationshipTablePagination = ()=>{
    const { data, handlePageChange } = useListQuery();
    return /*#__PURE__*/ _jsxDEV(Pagination, {
        hasNextPage: data.hasNextPage,
        hasPrevPage: data.hasPrevPage,
        limit: data.limit,
        nextPage: data.nextPage || 2,
        numberOfNeighbors: 1,
        onChange: (e)=>{
            void handlePageChange(e);
        },
        page: data.page || 1,
        prevPage: data.prevPage || undefined,
        totalPages: data.totalPages
    }, void 0, false, {
        fileName: "src/elements/RelationshipTable/Pagination.tsx",
        lineNumber: 12,
        columnNumber: 5
    }, this);
};

//# sourceMappingURL=Pagination.js.map