import React from "react"; type num = { total: number, page: number, setPage : Function } export function PaginationLeft ({total, page,setPage} : num) { const numPages = Math.ceil(total / 15); const left =()=>{ setPage(page - 1) }; return (
{/* {Array(numPages) .fill(1) .map((_, i) => ( ))} */}
); }; export function PaginationRight ({total, page,setPage} : num) { const numPages = Math.ceil(total / 15); const right =()=>{ setPage(page + 1) }; return (
); };