-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #945 from CookbookDev/cookbook-onboard
feat: Replaced Kapa AI with Cookbook Onboard (Web3 Focused AI Assistant & Playground)
- Loading branch information
Showing
4 changed files
with
2,029 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import SearchBar from '@theme-original/SearchBar'; | ||
import AskCookbook from '@cookbookdev/docsbot/react'; | ||
import BrowserOnly from '@docusaurus/BrowserOnly'; | ||
/** It's a public API key, so it's safe to expose it here */ | ||
const COOKBOOK_PUBLIC_API_KEY = | ||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NzEyYWRkYjk5YjBmNWViM2ZkODQxOGMiLCJpYXQiOjE3MjkyNzc0MDMsImV4cCI6MjA0NDg1MzQwM30._bhlmAnFpvxvkTV0PvU-6FwabhFOdSOx-qed2UIogpY'; | ||
export default function SearchBarWrapper(props) { | ||
return ( | ||
<> | ||
<SearchBar {...props} /> | ||
<BrowserOnly> | ||
{() => <AskCookbook apiKey={COOKBOOK_PUBLIC_API_KEY} />} | ||
</BrowserOnly> | ||
</> | ||
); | ||
} |
Oops, something went wrong.