Decorator pattern in Pagination UI component