return (

        {renderedPages.map(page => (
<Button
key={page}
onClick={() => onPageChange(page)}
content={page}
style={currentPage === page?{backgroundColor:"#cccccc"}:{}}
/>
))}
)
05-11 20:20