import { createSafeContext } from '../../utils/create-safe-context'; interface PaginationContext { total: number; range: (number | 'dots')[]; active: number; disabled: boolean | undefined; getItemProps?: (page: number) => Record; onChange: (page: number) => void; onNext: () => void; onPrevious: () => void; onFirst: () => void; onLast: () => void; shape?: 'square' | 'circle' | 'button'; } export const [PaginationProvider, usePaginationContext] = createSafeContext( 'PaginationRoot component was not found in tree' );