contacts toolbar: consolidate views and filters into dropdowns

This commit is contained in:
Agent Zero
2026-07-28 00:45:55 +02:00
parent 5378372aba
commit 722335c923
3 changed files with 93 additions and 56 deletions
+3 -1
View File
@@ -9,12 +9,14 @@ export interface ToolbarItem {
group?: string;
disabled?: boolean;
active?: boolean;
type?: 'button' | 'search' | 'select';
type?: 'button' | 'search' | 'select' | 'dropdown';
searchPlaceholder?: string;
onSearch?: (query: string) => void;
selectOptions?: { value: string; label: string }[];
selectValue?: string;
onSelect?: (value: string) => void;
menuOptions?: { value: string; label: string; icon?: React.ReactNode; active?: boolean; onClick: () => void }[];
menuWidth?: string;
}
interface PluginToolbarState {