import React from "react";
import { storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import { withKnobs, number } from "@storybook/addon-knobs";
import Pagination from "./index.js";
var stories = storiesOf("Pagination (deprecated)", module);
stories.addDecorator(withKnobs).addDecorator(function (story) {
  return React.createElement("div", {
    id: "root-preview"
  }, React.createElement("p", null, "Please use", React.createElement("a", {
    href: "/?path=/story/navigation-paginationcontrols-using-buttons-no-href--default"
  }, " ", "PaginationControls", " "), "component instead"), story());
});
stories.add("Default", function () {
  return React.createElement(Pagination, {
    currentPage: number("currentPage", 1),
    totalPages: number("totalPages", 10),
    onChange: action("page changed")
  });
});