export const APP_NAME = 'conduit' ; export const ALT_IMAGE_URL = 'https://static.productionready.io/images/smiley-cyrus.jpg' ; export function getLocalStorageValue ( key ) { const value = localStorage . getItem ( key ) ; if ( ! value ) return null ; try { return JSON . parse ( value ) ; } catch ( error ) { return null ; } } export function setLocalStorage ( key , value ) { localStorage . setItem ( key , JSON . stringify ( value ) ) ; }