mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix: render search bar component regardless of whether any active plugins are found
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import ErrorBoundary from '@docusaurus/ErrorBoundary'
|
||||
import { useActivePlugin } from '@docusaurus/plugin-content-docs/lib/client/index.js'
|
||||
import React from 'react'
|
||||
import { SearchBar } from './SearchBar'
|
||||
|
||||
const SearchBarWrapper: React.FC = () => {
|
||||
const activePlugin = useActivePlugin()
|
||||
if (!activePlugin) return <></>
|
||||
|
||||
return typeof window === 'undefined' ? (
|
||||
<></>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user