import BmsPagination from '@/components/table/BmsPagination.vue';

export default {
  title: 'Composants/table/Pagination',
  component: BmsPagination,
};

const Template = (args) => ({
  components: {
    BmsPagination,
  },
  setup() {
    return { args };
  },
  template: `
    <BmsPagination v-bind="args" :current-size="10"/>
  `,
});

export const Default = Template.bind({});
Default.args = {
  sizes: [10, 25, 50, 100],
  total: 120,
  currentPage: 0,
  pages: 8,
};

export const NoEnding = Template.bind({});
NoEnding.args = {
  sizes: [10, 25, 50, 100],
  total: Infinity,
  currentPage: 0,
  pages: Infinity,
};
