export const isMobile = ( ) : boolean => { return window ?. matchMedia ( '(any-pointer:coarse)' ) . matches ; } ; export const staticOpenNewWindow = ( urlString ) => { if ( window . self !== window . top ) { window . open ( urlString , '_blank' ) ; } else { window . open ( urlString , '_self' ) ; } } ; export const shareEncodedUrl = ( socialShareUrl ? ) : string => { return encodeURIComponent ( socialShareUrl || window . location . href ) ; } ;