import classNames from "classnames" import { usePagination, usePaginationProps } from "hooks/use-pagination" import Link from "next/link" export interface PagerProps extends React.HTMLAttributes { current: number total: number href: usePaginationProps["href"] } export function Pager({ current, total, href, ...props }: PagerProps) { const items = usePagination({ current, total, href, }) return ( ) }