import { useTranslation } from "react-i18next"; import { ContributeButtons } from "./contribute-links"; import type { BrowseQuery } from "./links"; import { PluginSearch } from "./plugin-search"; interface PluginsHeroProps { pluginCount: number; authorCount: number; /** Where the search box sends its term. */ searchScope: BrowseQuery; } /** Header of the plugin directory: title, counts, and copy, then the contribute buttons and search. */ export function PluginsHero({ pluginCount, authorCount, searchScope }: PluginsHeroProps) { const { t } = useTranslation(); return (

{t("plugins.title")} {t("plugins.counts", { plugins: t("plugins.pluginCount", { count: pluginCount }), authors: t("plugins.authorCount", { count: authorCount }), })}

{t("plugins.lead")}

); }