export const getLimitItemsHeightPerPage = ( itemHeight ) => Math . round ( + document . body . clientHeight / itemHeight ) ; export const getSkeletonLimitHeightItems = ( itemHeight ) => Array . from ( { length : getLimitItemsHeightPerPage ( itemHeight ) } , ( _ , i ) => i + 1 ) ;