import Link from "next/link"; import { createPagenation } from "../../../util/pagenation"; export function pagenationElement(now: number, max: number, getHrefBuilder: (page: number) => string) { const pagenationData = createPagenation({ now: now, max: max, between: 2 }); const liElements: JSX.Element[] = []; for (const v of pagenationData) { if (v.type == "back") { if (v.link == null) { liElements.push(