// Top-level app: login → workspace.

const App = () => {
  const [session, setSession] = React.useState(null);
  if (!session) return <Login onLogin={setSession} />;
  return <Workspace session={session} onLogout={() => setSession(null)} />;
};

ReactDOM.createRoot(document.getElementById("root")).render(<App />);
