import CPagination from "../components/CPagination/CPagination.vue";
import "./utils.css";

export default {
  title: "CPagination",
  component: CPagination,
  argTypes: {
    setPaginationRecords: {
      currentPage: 1,
      lastPage: 10,
    }
  },
};

const Template = (args, { argTypes }) => ({
  props: Object.keys(argTypes),
  components: { CPagination },
  template: '<c-pagination v-bind="$props" />',
});

export const Default = Template.bind({});
Default.args = {
  setPaginationRecords: {
    currentPage: 1,
    lastPage: 10,
    from: 1,
    to: 10,
    totalRecords: 200,
  }
};
