Store and retrieve cookies and react to changes

const [ cookie, setCookie ] = useCookie('myCookieKey')
const acceptCookie = () => setCookie(cookieValue)
const acceptCookieWithExpiration = () => setCookie(cookieValue, maxAgeSeconds)