import { useSearch } from "@tanstack/react-router"; import { Spinner } from "baseui/spinner"; import { useEffect } from "react"; import { API_URL } from "../../consts"; function Loading() { const { handle } = useSearch({ strict: false }); useEffect(() => { if (handle) { window.location.href = `${API_URL}/login?handle=${handle}`; } }, [handle]); return (
); } export default Loading;