import React, { useState } from "react";
import { Pagination } from "../../";

const ControlledPagination = () => {
  const [currentPageIndex, setCurrentPageIndex] = useState(0);
  return (
    <Pagination
      itemCount={100}
      currentPageIndex={currentPageIndex}
      onPageChange={setCurrentPageIndex}
    />
  );
};

export default (
  <div className="m-5">
    <ControlledPagination />
  </div>
);
