import { useState } from "react";
import GetBackendUrl from "./components/ImageModerator/GetBackendUrl";
import ImageModerator from "./components/ImageModerator/ImageModerator";

function App() {
  const [backendUrl, setBackendUrl] = useState("");

  if (backendUrl) {
    return <ImageModerator backendUrl={backendUrl} />;
  } else {
    return <GetBackendUrl setRemote={setBackendUrl} />;
  }
}

export default App;
