import { useNavigate, useOutletContext } from "react-router"; import { useTranslation } from "react-i18next"; import { GridCard } from "@/components/Card"; import { Button } from "@components/Button"; import LogoBlue from "@/assets/logo-blue.svg"; import LogoWhite from "@/assets/logo-white.svg"; interface ContextType { setupPeerConnection: () => Promise; } /* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */ export default function OtherSessionRoute() { const outletContext = useOutletContext(); const navigate = useNavigate(); const { t } = useTranslation(); // Function to handle closing the modal const handleClose = () => { outletContext?.setupPeerConnection().then(() => navigate("..")); }; return (

{t('Another_Active_Session_Detected')}

{t('Only_one_active_session_is_supported_at_a_time_Would_you_like_to_take_over_this_session')}

); }