import supportURL from "@cocalc/frontend/support/url"; import A from "./link"; export default function CrashMessage({ msg, lineNo, columnNo, url, stack, showLoadFail, }) { const getSupport = supportURL({ subject: showLoadFail ? "Crash Report: CoCalc Failed to Load" : "CoCalc Crash Report", body: `\n\nCONTEXT:\n\n${JSON.stringify( { msg, lineNo, columnNo, stack, url }, undefined, 2 )}`, type: "question", hideExtra: true, }); return (
Application Error:{" "} {msg} @ {lineNo}/{columnNo} of {url}
{showLoadFail &&

CoCalc Failed to Load

} Report the full error. {" "} In the meantime, try switching to another web browser, upating to the latest version of your browser, or{" "} { const crash = document.getElementById("cocalc-react-crash"); if (crash == null) return; crash.style.display = "none"; }} > dismissing this error {" "} and continuing.
        {stack}
      
); }