import { cn } from '../../utils/cn' import { Typography } from '../Typography' import { getPaginationDisplayState } from './pagination.shared' export interface PaginationDisplayProps { pageIndex: number pageSize?: number totalCount?: number currentPageCount?: number isLoading?: boolean className?: string } export function PaginationDisplay({ pageIndex, pageSize, totalCount, currentPageCount, isLoading = false, className, }: PaginationDisplayProps) { const { hasTotalCount, canRenderDisplay, start, end } = getPaginationDisplayState({ pageIndex, pageSize, totalCount, currentPageCount, }) if (!canRenderDisplay) return null const numberColor = isLoading ? 'muted' : 'foreground' return (