UNPKG

@ozen-ui/kit

Version:

React component library

14 lines (13 loc) 580 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shouldShowDots = void 0; var shouldShowDots = function (_a) { var leftSiblingStartIndex = _a.leftSiblingStartIndex, rightSiblingEndIndex = _a.rightSiblingEndIndex, totalPageCount = _a.totalPageCount; var shouldShowLeftDots = leftSiblingStartIndex > 3; var shouldShowRightDots = rightSiblingEndIndex < totalPageCount - 2; return { shouldShowLeftDots: shouldShowLeftDots, shouldShowRightDots: shouldShowRightDots, }; }; exports.shouldShowDots = shouldShowDots;