const setCookie = function setCookie(cname, cvalue, exdays) {
  const d = new Date();
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
  const expires = `expires=${d.toUTCString()}`;
  window.document.cookie = `${cname}=${cvalue};${expires};path=/`;
};
export default setCookie;