export const getCookie = ( name ) => { let value = document . cookie . match ( `(^|;) ?${ name }=([^;]*)(;|$)` ) ; return value ? value [ 2 ] : null ; } ; export const deleteCookie = ( name ) => { document . cookie = name + "=; expires=Thu, 01 Jan 1999 00:00:10 GMT;" ; } ;