import { WalletState } from '@unilogin/sdk' ; import { urlMapping } from './constants/urlMapping' ; export const needRedirect = ( walletState , currentLocation ) => urlMapping [ walletState . kind ] . filter ( path => currentLocation . includes ( path ) ) . length === 0 ;