import { PaginationProps } from "@/validations/mutual/pagination/type";
import PaginationDetails from "./PaginationDetails";
import PaginationShow from "./PaginationShow";
import SearchBarComponent from "./Search";

const PaginationComponent: React.FC<PaginationProps> = ({
    apiPagination,
    pagination,
    setPagination,
    defaultPagination,
}) => {
    return (
        <>
            <PaginationDetails pagination={pagination} setPagination={setPagination} defaultPagination={defaultPagination} />
            <SearchBarComponent pagination={pagination} setPagination={setPagination} />
            <PaginationShow apiPagination={apiPagination} />
        </ >
    )
}

export default PaginationComponent