import{j as r,Y as s}from"./app-CffHYkHW.js";import{C as c}from"./chevron-left-D6h0rvW2.js";import{C as i}from"./index-CjqRk3xD.js";function x({links:a}){const t="p-2 text-sm border rounded-md bg-white text-zinc-500 hover:bg-zinc-100 dark:bg-zinc-950 dark:text-zinc-400 dark:hover:bg-zinc-900 dark:border-zinc-900";return r.jsx(r.Fragment,{children:r.jsx("ul",{className:"justify-end flex items-center gap-1",children:a.map((e,n)=>e.url!=null?e.label.includes("Previous")?r.jsx(s,{className:t,href:e.url,preserveState:!0,children:r.jsx(c,{className:"size-4"})},n):e.label.includes("Next")?r.jsx(s,{className:t,href:e.url,preserveState:!0,children:r.jsx(i,{className:"size-4"})},n):r.jsx(s,{preserveState:!0,className:`px-3 py-1.5 text-sm border rounded-md text-zinc-500 hover:bg-zinc-100 dark:text-zinc-400 dark:hover:bg-zinc-900 dark:border-zinc-900 ${e.active?"bg-zinc-200 text-zinc-700 dark:bg-zinc-900 dark:text-zinc-50":"bg-white dark:bg-zinc-950"}`,href:e.url,children:e.label},n):null)})})}export{x as P};
