/** * set a cookie * the version from w3schools expects these to expire * @param {String} cname The name of the cookie to return * @param {any} value The value of that cookie option */ const setCookie = (cname: String, value: any) => { document.cookie = `${cname}=${value}`; }; export default setCookie;