"use client" import { MultiSelect } from "./multi-select" interface FilterConfig { key: string label: string options: { value: string; label: string; count?: number }[] selected: string[] onChange: (selected: string[]) => void } interface FilterBarProps { totalCount: number filteredCount?: number searchValue: string onSearchChange: (value: string) => void searchPlaceholder?: string filters: FilterConfig[] onClearAll: () => void } export function FilterBar({ totalCount, filteredCount, searchValue, onSearchChange, searchPlaceholder = "Search...", filters, onClearAll, }: FilterBarProps) { const hasActiveFilters = searchValue || filters.some((f) => f.selected.length > 0) const displayCount = filteredCount !== undefined ? filteredCount : totalCount return (