diff --git a/packages/logos-docusaurus-theme/src/client/theme/SearchBar/index.tsx b/packages/logos-docusaurus-theme/src/client/theme/SearchBar/index.tsx index 1e6ecf0..69799e3 100644 --- a/packages/logos-docusaurus-theme/src/client/theme/SearchBar/index.tsx +++ b/packages/logos-docusaurus-theme/src/client/theme/SearchBar/index.tsx @@ -1,7 +1,11 @@ +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' ? <> : }