import React from "react"; import PropTypes from "prop-types"; import Button from "../button"; import ComboBox from "../combobox"; import { StyledPage, StyledOnPage, StyledPaging } from "./styled-paging"; const Paging = (props) => { //console.log("Paging render"); const { previousLabel, nextLabel, previousAction, nextAction, pageItems, countItems, openDirection, disablePrevious, disableNext, disableHover, selectedPageItem, selectedCountItem, id, className, style, showCountItem, } = props; const onSelectPageAction = (option) => { props.onSelectPage(option); }; const onSelectCountAction = (option) => { props.onSelectCount(option); }; const setDropDownMaxHeight = pageItems && pageItems.length > 6 ? { dropDownMaxHeight: 200 } : {}; return (