"use client";
import { jsx } from 'react/jsx-runtime';
import { usePluginOverrides } from '@btst/stack/context';
import { ErrorPlaceholder } from '../shared/error-placeholder.mjs';
import { AI_CHAT_LOCALIZATION } from '../../localization/index.mjs';

function NotFoundPage({ message }) {
  const { localization } = usePluginOverrides("ai-chat", {
    localization: AI_CHAT_LOCALIZATION
  });
  const title = localization?.CHAT_PAGE_NOT_FOUND_TITLE ?? AI_CHAT_LOCALIZATION.CHAT_PAGE_NOT_FOUND_TITLE;
  const desc = message || (localization?.CHAT_PAGE_NOT_FOUND_DESCRIPTION ?? AI_CHAT_LOCALIZATION.CHAT_PAGE_NOT_FOUND_DESCRIPTION);
  return /* @__PURE__ */ jsx("div", { "data-testid": "404-page", className: "flex flex-col h-[calc(100vh-4rem)]", children: /* @__PURE__ */ jsx(ErrorPlaceholder, { title, message: desc }) });
}

export { NotFoundPage };
