import React, { useState } from 'react'; import type { ComponentMeta } from '@storybook/react'; import { Pagination } from '@tih/ui'; export default { argTypes: {}, component: Pagination, title: 'Pagination', } as ComponentMeta; // eslint-disable-next-line @typescript-eslint/no-empty-function function emptyFunction() {} export function Basic({ current, end, start, pagePadding, }: Pick< React.ComponentProps, 'current' | 'end' | 'pagePadding' | 'start' >) { return (
); } Basic.args = { current: 3, end: 10, pagePadding: 1, start: 1, }; export function Interaction() { const [currentPage, setCurrentPage] = useState(5); return (
setCurrentPage(page)} />
); } export function PageRanges() { return (
); } export function PagePadding() { return (
); }