// lego-rover-garage.jsx
// React wrapper for the standalone Lego rocket adventure. The game keeps its
// document-level loop inside an iframe so its listeners and animation frame
// stay isolated from the main Space Explorer shell.

function LegoRoverGarageLevel({ onExit }) {
  return (
    <section
      className="lego-rover-level"
      aria-label="Lego rover garage adventure"
    >
      <button className="lego-rover-exit" type="button" onClick={onExit}>
        Back
      </button>
      <iframe
        className="lego-rover-frame"
        title="Lego rover garage adventure"
        src="lego-rocket-game.html?start=rover-garage"
      />
    </section>
  );
}

window.SpaceExplorerLegoRoverGarage = LegoRoverGarageLevel;
