export const setStorage = ( key , value ) => { sessionStorage . setItem ( key , JSON . stringify ( value ) ) ; } ; export const getStorage = ( key ) => { const verify = sessionStorage . getItem ( key ) ; if ( verify ) { return JSON . parse ( sessionStorage . getItem ( key ) as string ) ; } } ;