text: /*
   * React template helpers
   * Author: Nouthemes
   * Developed: diaryforlife
   * */
  
  export const stickyHeader = () => {
      let number =
          window.pageXOffset ||
          document.documentElement.scrollTop ||
          document.body.scrollTop ||
          0;
      const header = document.getElementById('header-sticky');
      if (header !== null) {
          if (number >= 300) {
              header.classList.add('header--sticky');
          } else {
              header.classList.remove('header--sticky');
          }
      }
  };
  
  export const stickyHeaderModile = () => {
      let number =
          window.pageXOffset ||
          document.documentElement.scrollTop ||
          document.body.scrollTop ||
          0;
      const header = document.getElementById('header-sticky-mobile');
      if (header !== null) {
          if (number >= 300) {
              header.classList.add('header--sticky');
          } else {
              header.classList.remove('header--sticky');
          }
      }
  };
  
  export const generateTempArray = (maxItems) => {
      let result = [];
  
      for (let i = 0; i < maxItems; i++) {
          result.push(i);
      }
      return result;
  };
  