+ {/* Type toggle */}
+
+
+
+
+
+
+
+
+ No results.
+
+ {options.map((opt) => {
+ const label =
+ type === 'client' ? (opt.fullName ?? '(unnamed)') : (opt.name ?? '(unnamed)');
+ const isSelected = value?.id === opt.id && value?.type === type;
+ return (
+ {
+ onChange({ type, id: opt.id });
+ setOpen(false);
+ }}
+ >
+
+ {label}
+
+ );
+ })}
+
+
+
+
+