import { useNavigate, useOutletContext } from "react-router-dom"; 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 { connectWebRTC: () => 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(); // Function to handle closing the modal const handleClose = () => { outletContext?.connectWebRTC().then(() => navigate("..")); }; return (

Another Active Session Detected

Only one active session is supported at a time. Would you like to take over this session?

); }