Files
klz-cables.com/.pnpm-store/v10/files/3b/2f952e7fabb3cf96d4ed952a1c683967e75309b4e747ac87daa97388d76167a5380ecb988c3f3a4a25da81863289d7ef0e07ae3c839cecf2e3baec4168596e
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

54 lines
1.4 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { useListQuery } from '../../providers/ListQuery/index.js';
import { Pagination } from '../Pagination/index.js';
export const RelationshipTablePagination = () => {
const $ = _c(11);
const {
data,
handlePageChange
} = useListQuery();
const t0 = data.nextPage || 2;
let t1;
if ($[0] !== handlePageChange) {
t1 = e => {
handlePageChange(e);
};
$[0] = handlePageChange;
$[1] = t1;
} else {
t1 = $[1];
}
const t2 = data.page || 1;
const t3 = data.prevPage || undefined;
let t4;
if ($[2] !== data.hasNextPage || $[3] !== data.hasPrevPage || $[4] !== data.limit || $[5] !== data.totalPages || $[6] !== t0 || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
t4 = _jsx(Pagination, {
hasNextPage: data.hasNextPage,
hasPrevPage: data.hasPrevPage,
limit: data.limit,
nextPage: t0,
numberOfNeighbors: 1,
onChange: t1,
page: t2,
prevPage: t3,
totalPages: data.totalPages
});
$[2] = data.hasNextPage;
$[3] = data.hasPrevPage;
$[4] = data.limit;
$[5] = data.totalPages;
$[6] = t0;
$[7] = t1;
$[8] = t2;
$[9] = t3;
$[10] = t4;
} else {
t4 = $[10];
}
return t4;
};
//# sourceMappingURL=Pagination.js.map