export const getFromLocalStorage = ( key ) : ( ( ) => any ) => { return ( ) => JSON . parse ( localStorage . getItem ( key ) ) ; } ; export const removeFromLocalStorage = ( key ) : ( ( ) => void ) => { return ( ) => localStorage . removeItem ( key ) ; } ;