"use client";
import { jsx } from 'react/jsx-runtime';
import { ChatLayout } from '../chat-layout.mjs';
import { usePluginOverrides } from '@btst/stack/context';

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

export { ChatPage };
