1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| import Cookies from "js-cookie";
| const SupportKey='supportKey';
| export function getSupport() {
| return Cookies.get(SupportKey)
| }
|
| export function setSupport(isSupport) {
| return Cookies.set(SupportKey, isSupport,{ expires: 3 })
| }
|
| export function setCookie(key,value,expires) {
| return Cookies.set(key, value,{ expires: expires})
| }
|
| export function getCookie(key) {
| return Cookies.get(key)
| }
|
|