import { useState } from 'react'; import { Pager } from 'reablocks'; import { pagerTheme } from 'reablocks'; export default { title: 'Components/Data/Pager', component: Pager }; export const ShowPages = () => { const [page, setPage] = useState(0); return ( ); }; export const ShowItems = () => { const [page, setPage] = useState(0); return ( ); }; export const ShowAll = () => { const [page, setPage] = useState(0); return ( ); }; export const CustomTheme = () => { const [page, setPage] = useState(0); const customTheme = pagerTheme; customTheme.itemsDisplay = 'text-slate-500'; customTheme.showPageRange = "text-blue-400 font-bold before:content-['Showing_'] before:text-slate-500 before:font-normal"; customTheme.totalCount = 'text-blue-400 font-bold'; return ( ); };