diff --git a/src/shared/Pagination.tsx b/src/shared/Pagination.tsx new file mode 100644 index 0000000..4c8f9a3 --- /dev/null +++ b/src/shared/Pagination.tsx @@ -0,0 +1,64 @@ +import { CustomLink } from "@/data/types"; +import React, { FC } from "react"; +import twFocusClass from "@/utils/twFocusClass"; +import Link from "next/link"; +import { Route } from "@/routers/types"; + +const DEMO_PAGINATION: CustomLink[] = [ + { + label: "1", + href: "#", + }, + { + label: "2", + href: "#", + }, + { + label: "3", + href: "#", + }, + { + label: "4", + href: "#", + }, +]; + +export interface PaginationProps { + className?: string; +} + +const Pagination: FC = ({ className = "" }) => { + const renderItem = (pag: CustomLink, index: number) => { + if (index === 0) { + // RETURN ACTIVE PAGINATION + return ( + + {pag.label} + + ); + } + // RETURN UNACTIVE PAGINATION + return ( + + {pag.label} + + ); + }; + + return ( + + ); +}; + +export default Pagination;