import classNames from "classnames"; import { Link } from "gatsby"; import React from "react"; import * as styles from "./Pagination.module.scss"; import { PAGINATION } from "@/constants"; type Props = { prevPagePath: string; nextPagePath: string; hasNextPage: boolean; hasPrevPage: boolean; }; const Pagination = ({ prevPagePath, nextPagePath, hasNextPage, hasPrevPage }: Props) => { const prevClassName = classNames(styles.previousLink, { [styles.disable]: !hasPrevPage, }); const nextClassName = classNames(styles.nextLink, { [styles.disable]: !hasNextPage, }); return (