diff --git a/src/components/Pagination/index.tsx b/src/components/Pagination/index.tsx index 2548edc7..65c163bb 100644 --- a/src/components/Pagination/index.tsx +++ b/src/components/Pagination/index.tsx @@ -96,103 +96,3 @@ function Pagination({ pageInfo }: { pageInfo: PaginationProps }) { } export default Pagination; - -// import { -// ChevronLeftIcon, -// ChevronRightIcon, -// ChevronsLeftIcon, -// ChevronsRightIcon, -// } from 'lucide-react'; - -// import useSetSearchParams from '@/hooks/useSetSearchParam'; - -// import * as S from './Pagination.css'; - -// interface PaginationProps { -// totalPage: number; -// currentPage: number; -// } - -// const NUM = 5; - -// function Pagination({ pageInfo }: { pageInfo: PaginationProps }) { -// const { totalPage, currentPage } = pageInfo; -// const { setSingleSearchParam } = useSetSearchParams(); - -// const handlePageChange = (newPage: number) => { -// setSingleSearchParam('page', newPage.toString()); -// }; - -// const half = Math.floor(NUM / 2); -// const startPage = Math.max(1, Math.min(currentPage + 1 - half, totalPage - NUM + 1)); -// const endPage = Math.min(totalPage, startPage + NUM - 1); - -// const numberStyle = (page: number) => { -// return currentPage + 1 === page ? S.base.currentNumbers : S.base.numbers; -// }; - -// const chevronLeftStyle = () => { -// return currentPage + 1 === 1 ? S.base.numbers : S.base.currentNumbers; -// }; - -// const chevronRightStyle = () => { -// return currentPage + 1 === totalPage ? S.base.numbers : S.base.currentNumbers; -// }; - -// return ( -//