#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
import SuperSearch from "@editor/components/shared/superSearch/SuperSearch";
import {
usePortalSearchResults,
usePortalSearchScopes,
} from "@processor/hooks/usePortalSearchResults";
import "@processor/components/PortalSearchBar.css";
/**
* The portal face of the global super search — the same bar the editor's
* workbench shows, fed by the portal-wired results provider. Cmd/Ctrl+K
* focuses it (the bar registers its own shortcut). App config (the
* admin/login gates) comes from PlatformProviders. The distinct
* input id keeps this instance clear of the editor bar's stable id, which
* external focus helpers target.
*/
export function PortalSearchBar() {
const scopes = usePortalSearchScopes();
return (
<div className="portal-searchbar">
<SuperSearch
useResults={usePortalSearchResults}
inputId="portal-search-input"
scopes={scopes}
dropdownClassName="portal-search-dropdown"
/>
</div>
);
}