mirror of
https://github.com/kennethreitz/langchain.git
synced 2026-06-05 23:00:18 +00:00
87e502c6bc
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
30 lines
873 B
JavaScript
30 lines
873 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
import React from "react";
|
|
import { MendableSearchBar } from "@mendable/search";
|
|
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
|
|
|
export default function SearchBarWrapper() {
|
|
const {
|
|
siteConfig: { customFields },
|
|
} = useDocusaurusContext();
|
|
return (
|
|
<div className="mendable-search">
|
|
<MendableSearchBar
|
|
anon_key={customFields.mendableAnonKey}
|
|
style={{ accentColor: "#4F956C", darkMode: false }}
|
|
placeholder="Search..."
|
|
dialogPlaceholder="How do I use a LLM Chain?"
|
|
messageSettings={{ openSourcesInNewTab: false, prettySources: true }}
|
|
showSimpleSearch
|
|
/>
|
|
</div>
|
|
);
|
|
}
|