src/pagination_link.tsx
import { clsx } from "clsx";
import type { ComponentProps, FC } from "react";
type Props = {
current?: boolean;
};
export const PaginationLink: FC<
Omit<ComponentProps<"a">, keyof Props> & Props
> = ({ current, className, ...props }) => (
<a
{...props}
className={clsx("pagination-link", current && "is-current", className)}
/>
);