"use client" import { keepPreviousData } from "@tanstack/react-query" import { useState } from "react" import { trpc } from "@/lib/trpc/client" import { ChevronRightIcon } from "@/components/Icons" import LoadingSpinner from "@/components/LoadingSpinner" import DesktopTable from "./Desktop" import MobileTable from "./Mobile" import styles from "../earnAndBurn.module.css" import { Transactions } from "@/types/components/myPages/myPage/earnAndBurn" function PaginationButton({ children, isActive, handleClick, disabled, }: React.PropsWithChildren<{ disabled: boolean isActive?: boolean handleClick: () => void }>) { return ( ) } function Pagination({ pageCount, isFetching, handlePageChange, currentPage, }: { pageCount: number isFetching: boolean handlePageChange: (page: number) => void currentPage: number }) { const isOnFirstPage = currentPage === 1 const isOnLastPage = currentPage === pageCount return (