// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later
// @source: https://gitlab.com/soapbox-pub/ditto/-/tree/f0a3877c
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{ni as t,qi as n}from"./lucide-icons-BdRF0moN.js";import{t as r}from"./jsx-runtime-By8HlURe.js";import{r as i}from"./react-intl-eZirkCBg.js";import{t as a}from"./dist-DQ_zK-Nr.js";import{t as o}from"./button-Cs26nq0r.js";import{c as s}from"./chunk-62JRHF6Z-yJW_vgm4.js";var c=e(n(),1),l=r();function u(){let e=s(),n=a.isNativePlatform();return(0,c.useEffect)(()=>{if(!n)return;let t=setTimeout(()=>e(`/`,{replace:!0}),1500);return()=>clearTimeout(t)},[n,e]),(0,l.jsx)(`main`,{className:`flex items-center justify-center min-h-[60vh]`,children:(0,l.jsxs)(`div`,{className:`text-center px-8 space-y-4 max-w-sm`,children:[(0,l.jsx)(t,{className:`w-16 h-16 text-green-500 mx-auto`}),(0,l.jsx)(`h1`,{className:`text-2xl font-bold`,children:(0,l.jsx)(i,{id:`remoteLoginSuccess.title`,defaultMessage:`Login approved!`})}),n?(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:(0,l.jsx)(i,{id:`remoteLoginSuccess.redirecting`,defaultMessage:`Taking you back to the app…`})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:(0,l.jsx)(i,{id:`remoteLoginSuccess.description`,defaultMessage:`Your signer approved the connection. You can close this tab and return to the app.`})}),(0,l.jsx)(o,{onClick:()=>e(`/`,{replace:!0}),children:(0,l.jsx)(i,{id:`remoteLoginSuccess.goHome`,defaultMessage:`Go home`})})]})]})})}export{u as RemoteLoginSuccessPage};
// @license-end
