import { Link } from 'react-router-dom' import { useAuth } from '../../auth/AuthProvider' import { useContinueWithRole } from '../../hooks/useContinueWithRole' /** CI `user/welcome_back.php` — multi-role picker (same behavior as `/app/select-role`). */ export function WelcomeBackPage() { const { user, roles } = useAuth() const { continueWithRole, busy, busyRole, error } = useContinueWithRole() return (
{
;(ev.target as HTMLImageElement).style.display = 'none'
}}
/>
As your account has multiple roles in the portal, select how you want to continue:
Signed in as {user.name}
) : null} {error ?