"use client";
'use strict';

const jsxRuntime = require('react/jsx-runtime');
const chatLayout = require('../chat-layout.cjs');
const context = require('@btst/stack/context');

function ChatPage({ conversationId }) {
  const { apiBaseURL, apiBasePath, mode } = context.usePluginOverrides("ai-chat", {});
  const showSidebar = mode !== "public";
  return /* @__PURE__ */ jsxRuntime.jsx(
    chatLayout.ChatLayout,
    {
      apiBaseURL: apiBaseURL ?? "",
      apiBasePath: apiBasePath ?? "",
      conversationId,
      showSidebar
    }
  );
}

exports.ChatPage = ChatPage;
