import { Meta , Story } from '@storybook/react' ; import { Pagination , IPaginationCustomProps } from './Pagination' ; import React from 'react' ; export default { title : 'Components/Interface/DataTable/Pagination' , component : Pagination } as Meta ; const Template = ( args ) => ( < Pagination { ... args } / > ) ; export const PaginationView = Template . bind ( { } ) ; PaginationView . args = { initialPage : 1 , totalPages : 10 , onPageChange : ( pageNo ) => alert ( `${ pageNo }` ) } ;