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