"use client"; import { useTranslation } from "react-i18next"; import type { ReactNode } from "react"; import { IntegrationListToolbar } from "@/components/integrations/integration-list-toolbar"; import { RepoFilterCombobox } from "./repo-filter-combobox"; type ListToolbarProps = { title: string; titleControl?: ReactNode; count: number; loading: boolean; lastFetchedAt: Date | null; customQuery: string; committedQuery: string; onCustomQueryChange: (value: string) => void; onCommitCustomQuery: () => void; repoFilter: string; onRepoFilterChange: (value: string) => void; repoOptions: string[]; onRefresh: () => void; }; export function ListToolbar({ title, titleControl, count, loading, lastFetchedAt, customQuery, committedQuery, onCustomQueryChange, onCommitCustomQuery, repoFilter, onRepoFilterChange, repoOptions, onRefresh, }: ListToolbarProps) { const { t } = useTranslation(); return ( } queryPlaceholder={t("github:customQueryPressEnterEG")} titleTestId="github-list-toolbar-title" /> ); }