text: 
  
  export function setCookie(cookieName, cookieValue, expirationDays = 365) {
      const date = new Date();
      date.setTime(date.getTime() + (expirationDays*24*60*60*1000));
  
      const expires=`expires=${date.toUTCString()}`;
  
      document.cookie = `${cookieName}=${cookieValue};${expires}`;
  }
  
  export function getCookie(cookieName) {
      const name = `${cookieName}=`;
      const decodedCookie = decodeURIComponent(document.cookie);
      let cookieString = decodedCookie.split(';');
      for(let index = 0; index <cookieString.length; index++) {
          let cookie = cookieString[index];
          while (cookie.charAt(0) === ' ') {
              cookie = cookie.substring(1);
          }
          if (cookie.indexOf(name) === 0) {
              return cookie.substring(name.length, cookie.length);
          }
      }
      return "";
  }
  
  export function checkCookieExist(cookieName) {
      const cookie = getCookie(cookieName);
  
      if(cookie !== "") {
          return true;
      } else {
          return false;
      }
  }