import React from "react";
import ReactDOM from "react-dom/client";
import { App } from "./app/App";
import { ProgramOutputApp } from "./app/ProgramOutputApp";

const mode = new URLSearchParams(window.location.search).get("mode");

ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    {mode === "output" ? <ProgramOutputApp /> : <App />}
  </React.StrictMode>
);
