module.exports=[89989,a=>{"use strict";var b=a.i(87924),c=a.i(33403),d=a.i(50944);function e({totalPages:a}){let e=(0,c.useRouter)(),f=(0,c.usePathname)(),g=(0,d.useSearchParams)(),h=Number(g.get("page"))||1,i=a=>{let b=new URLSearchParams(g);b.set("page",a.toString()),e.push(`${f}?${b.toString()}`,{scroll:!1})};return(0,b.jsxs)("div",{className:"flex items-center gap-4 text-primary font-bold font-prompt select-none",children:[(0,b.jsx)("button",{onClick:()=>i(1),disabled:1===h,className:"hover:text-accent disabled:opacity-30 disabled:cursor-not-allowed",children:"|<<"}),(0,b.jsx)("button",{onClick:()=>i(h-1),disabled:1===h,className:"hover:text-accent disabled:opacity-30 disabled:cursor-not-allowed",children:"<"}),(0,b.jsx)("div",{className:"flex border-b-4 border-primary",children:[...Array(a)].map((a,c)=>{let d=c+1,e=d===h;return(0,b.jsx)("button",{onClick:()=>i(d),className:`px-4 py-2 transition-colors ${e?"bg-accent text-primary":"hover:bg-gray-100 text-primary"}`,children:d},d)})}),(0,b.jsx)("button",{onClick:()=>i(h+1),disabled:h===a,className:"hover:text-accent disabled:opacity-30 disabled:cursor-not-allowed",children:">"}),(0,b.jsx)("button",{onClick:()=>i(a),disabled:h===a,className:"hover:text-accent disabled:opacity-30 disabled:cursor-not-allowed",children:">>|"})]})}a.s(["default",()=>e])}];

//# sourceMappingURL=src_components_Pagination_tsx_c9a5bbb6._.js.map