import{a as n,j as t,bD as s}from"./strapi-BZkmC8So.js";import{a}from"./SelectRoles-BxuOphqL.js";import"./useAdminRoles-CxYfBhIr.js";const g=({registrationToken:e})=>{const{formatMessage:i}=n();return e?t.jsx(a,{target:`${window.location.origin}${s()}/auth/register?registrationToken=${e}`,children:i({id:"app.components.Users.MagicLink.connect",defaultMessage:"Copy and share this link to give access to this user"})}):t.jsx(a,{target:`${window.location.origin}${s()}/auth/login`,children:i({id:"app.components.Users.MagicLink.connect.sso",defaultMessage:"Send this link to the user, the first login can be made via a SSO provider."})})};export{g as MagicLinkEE};
