-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comments for ask cookbook
- Loading branch information
Showing
3 changed files
with
1,657 additions
and
11 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
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'; | ||
|
||
// This is a public key, so it's safe to hardcode it. | ||
// To get a new one or request access to the internal portal (If you work for the Web3JS), contact the cookbook.dev team at tyler@cookbook.dev. | ||
const ASK_COOKBOOK_PUBLIC_KEY = | ||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NjdjNzc3YzNmOGY3Mzk2MGYzZGNiOGYiLCJpYXQiOjE3MTk0MzMwODQsImV4cCI6MjAzNTAwOTA4NH0.OXWVNJMxMuEGG1oWetW_a9005r8hmQ6RbF19wbrpTlk'; | ||
|
||
export default function SearchBarWrapper(props) { | ||
return ( | ||
<> | ||
<SearchBar {...props} /> | ||
<AskCookbook apiKey={ASK_COOKBOOK_PUBLIC_KEY} /> | ||
</> | ||
); | ||
} |
Oops, something went wrong.