import type { MaskSDK_SNS_ContextIdentifier } from '../../plugins/External/sns-context' ; import { PopupRoutes } from '@masknet/shared-base' ; import { getRouteURLWithNoParam } from './utils' ; export function PermissionAwareRedirectOf ( url , context ) { return ( getRouteURLWithNoParam ( PopupRoutes . PermissionAwareRedirect ) + `?url=${ encodeURIComponent ( url ) }&context=${ context }` ) ; } export { constructRequestPermissionURL } from './RequestPermission/utils' ; export { constructSignRequestURL } from './SignRequest/utils' ; export { getRouteURLWithNoParam } from './utils' ;