import{i as m,j as n,Y as c}from"./app-BgLa5dit.js";function x(l){var r;const{crmIds:i,crmIdPage:t,setCrmIdPage:e,customers:a,params:s,crmIdPageSize:d,searchAction:g,appLinkApplication:p=m.SYSTEM,appLinkAction:o=g}=l;return i.length?n.jsxs("div",{className:"col-12 d-flex justify-content-end",children:[t>1&&n.jsx("button",{className:"btn btn-outline-dark",onClick:()=>e(t-1),children:"Previous"}),t*d<i.length&&n.jsx("button",{className:"btn btn-outline-dark ms-2",onClick:()=>e(t+1),children:"Next"})]}):(r=a==null?void 0:a.data)!=null&&r.length?n.jsxs("div",{className:"col-12 d-flex justify-content-end",children:[a.pagination.page>1&&n.jsx(c,{appLink:{application:p,action:o,params:{...s,page:a.pagination.page-1}},className:"btn btn-outline-dark",children:"Previous"}),a.pagination.page<a.pagination.totalPages&&n.jsx(c,{appLink:{application:p,action:o,params:{...s,page:a.pagination.page+1}},className:"btn btn-outline-dark ms-2",children:"Next"})]}):n.jsx(n.Fragment,{})}export{x as C};
//# sourceMappingURL=aRuxirO7.chunk.js.map
