import { FC, useEffect } from "react"; import { useTranslation } from "react-i18next"; import useStreaming from "@/hooks/useStreaming"; // import clsx from "clsx"; import Button from "./styled/Button"; interface Props {} const InactiveScreen: FC = () => { const { t } = useTranslation(); const { stopStreaming } = useStreaming(); // const [reloadVisible, setReloadVisible] = useState(false); useEffect(() => { console.info("debug SSE: stopStreaming at inactive screen"); stopStreaming(); const currTitle = document.title; document.title = `[INACTIVE] ${currTitle}`; return () => { document.title = currTitle; }; }, []); const handleReload = () => { location.reload(); }; return (

{t("inactive.title")}

{t("inactive.desc")}

); }; export default InactiveScreen;