"use client"; import React, { FC } from "react"; import twFocusClass from "@/utils/twFocusClass"; export interface NextPrevProps { className?: string; currentPage?: number; totalPage?: number; btnClassName?: string; onClickNext?: () => void; onClickPrev?: () => void; onlyNext?: boolean; onlyPrev?: boolean; } const NextPrev: FC = ({ className = "", onClickNext = () => {}, onClickPrev = () => {}, btnClassName = "w-10 h-10", onlyNext = false, onlyPrev = false, }) => { return (
{!onlyNext && ( )} {!onlyPrev && ( )}
); }; export default NextPrev;