"use client"; import { Search } from "lucide-react"; import { type FC } from "react"; import { DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { TabsList, TabsTrigger, } from "@/components/ui/tabs"; import { cn } from "@/lib/utils"; interface ConnectorDialogHeaderProps { activeTab: string; totalSourceCount: number; searchQuery: string; onTabChange: (value: string) => void; onSearchChange: (query: string) => void; isScrolled: boolean; } export const ConnectorDialogHeader: FC = ({ activeTab, totalSourceCount, searchQuery, onTabChange, onSearchChange, isScrolled, }) => { return (
Connectors Search across all your apps and data in one place.
All Connectors Active {totalSourceCount > 0 && ( {totalSourceCount} )}
onSearchChange(e.target.value)} />
); };