/** * External dependencies */ import clsx from 'clsx'; /** * WordPress dependencies */ import { __experimentalHStack as HStack, __experimentalText as WCText, Button, } from '@wordpress/components'; import { __, _x, _n, sprintf, isRTL } from '@wordpress/i18n'; import { previous, chevronLeft, chevronRight, next } from '@wordpress/icons'; interface PaginationProps { currentPage: number; numPages: number; changePage: ( page: number ) => void; totalItems: number; className?: string; disabled?: boolean; buttonVariant?: 'primary' | 'secondary' | 'tertiary'; label?: string; } export default function Pagination( { currentPage, numPages, changePage, totalItems, className, disabled = false, buttonVariant = 'tertiary', label = __( 'Pagination' ), }: PaginationProps ) { return ( { sprintf( // translators: %d: Total number of patterns. _n( '%d item', '%d items', totalItems ), totalItems ) }