Skip to content

Instantly share code, notes, and snippets.

View ArthurDias01's full-sized avatar
👋
to the Moon!

Arthur Dias ArthurDias01

👋
to the Moon!
View GitHub Profile
@ArthurDias01
ArthurDias01 / pagination.tsx
Created March 15, 2023 20:10
Pagination - Component
import { PaginationItem } from "./PaginationItem";
interface PaginationProps {
totalCountOfRegisters: number;
registersPerPage?: number;
currentPage?: number;
onPageChange: (page: number) => void;
}
const siblingsCount = 2;
import { useState, useEffect, useContext, createContext, ReactNode } from 'react';
import nookies, { setCookie } from 'nookies';
import { firebaseUUID } from '../utils/FirebaseUUID';
import router from 'next/router';
import { useToast } from '@chakra-ui/react';
import { auth, db, authSecond, firebase, storage } from '../config/firebase';
import {
createUserWithEmailAndPassword,
signInWithEmailAndPassword,