(key: string)
| 16 | }; |
| 17 | |
| 18 | export const getCookie = (key: string) => { |
| 19 | const cookieList = getCookies(); |
| 20 | if (!cookieList.hasOwnProperty(key)) { |
| 21 | return ""; |
| 22 | } |
| 23 | return cookieList[key]; |
| 24 | }; |
| 25 | |
| 26 | export const setCookie = (key: string, value: string, expDays: number = 6) => { |
| 27 | const date = new Date(); |
no test coverage detected