import { UserSession } from "@esri/arcgis-rest-auth" ; import { getPortalUrl } from "../util/get-portal-url" ; param session returns export function getUserUrl ( session ) { return `${ getPortalUrl ( session ) }/community/users/${ encodeURIComponent ( session . username ) }` ; }