"use client"; import type { ReactNode } from "react"; import { getPreviousNext } from "../node/route"; import { docsHtmlHref } from "../node/utils"; import { PaginationDocs } from "@docubook/ui-react/pagination"; interface PaginationProps { pathname: string; className?: string; prevIcon?: ReactNode; nextIcon?: ReactNode; linkClassName?: string; } export default function Pagination({ pathname, className, prevIcon, nextIcon, linkClassName, }: PaginationProps) { const { prev, next } = getPreviousNext(pathname); if (!prev && !next) { return null; } return ( ); }