1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/src/components/@shared/Pagination/index.stories.tsx
2022-06-23 15:03:24 +03:00

30 lines
715 B
TypeScript

import React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'
import Pagination from '@shared/Pagination'
import { PaginationProps } from './_types'
import MarketMetadataProvider from '@context/MarketMetadata'
export default {
title: 'Component/@shared/Pagination',
component: Pagination
} as ComponentMeta<typeof Pagination>
const Template: ComponentStory<typeof Pagination> = (args: PaginationProps) => {
return (
<MarketMetadataProvider>
<Pagination {...args} />
</MarketMetadataProvider>
)
}
interface Props {
args: PaginationProps
}
export const Default: Props = Template.bind({})
Default.args = {
totalPages: 10,
currentPage: 1,
rowsPerPage: 3
}