const API_BASE_URL = (process.env.NEXT_PUBLIC_API_URL ?? "http://127.0.0.1:8000").replace(/\/+$/, "");

export function RoomDesignerAppFrame() {
  const src = `/room-designer-app/index.html?api=${encodeURIComponent(API_BASE_URL)}`;
  return (
    <main className="room-designer-app-shell" aria-label="Akarya Room Designer application">
      <iframe
        className="room-designer-app-frame"
        src={src}
        title="Akarya Room Designer"
        allow="fullscreen"
      />
    </main>
  );
}
