import { useLink } from "@refinedev/core"; import React, { type ReactNode } from "react"; interface PaginationLinkProps { to: string; element: ReactNode; } export const PaginationLink = ({ to, element }: PaginationLinkProps) => { const Link = useLink(); return ( ) => { e.preventDefault(); }} > {element} ); };