import { Button, Col, Row } from 'antd'; import { isUndefined } from 'lodash'; import React from 'react'; import { PAGE_SIZE } from '../../constants/constants'; import { Paging } from '../../generated/type/paging'; import NextPrevious from '../common/next-previous/NextPrevious'; const TestCaseCommonTabContainer = ({ buttonName, children, paging, currentPage, testCasePageHandler, onButtonClick, showButton = true, isPaging = false, }: { buttonName: string; showButton?: boolean; children?: JSX.Element; paging?: Paging; onButtonClick?: () => void; currentPage?: number; testCasePageHandler?: ( cursorValue: string | number, activePage?: number | undefined ) => void; isPaging?: boolean; }) => { const NextPreviousComponent = () => { if ( isPaging && !isUndefined(paging) && paging?.total > PAGE_SIZE && !isUndefined(currentPage) && testCasePageHandler ) { return (