+ {wsDataSources.length > 0 && (
+ <>
+
Persönliche Quellen
+ {wsDataSources.map(ds => {
+ const sel = attachedDsIds.includes(ds.id);
+ return (
+
_toggleDs(ds.id)} style={{
+ padding: '6px 12px', cursor: 'pointer', fontSize: 12,
+ display: 'flex', alignItems: 'center', gap: 8,
+ background: sel ? '#e8f5e9' : 'transparent',
+ }}
+ onMouseEnter={e => { if (!sel) e.currentTarget.style.background = '#f5f5f5'; }}
+ onMouseLeave={e => { if (!sel) e.currentTarget.style.background = ''; }}
+ >
+
+ {sel ? '✓' : ''}
+
+ {ds.label || ds.path}
+
+ );
+ })}
+ >
+ )}
+ {wsFeatureDataSources.length > 0 && (
+ <>
+
Feature-Datenquellen
+ {wsFeatureDataSources.map(fds => {
+ const sel = attachedFdsIds.includes(fds.id);
+ return (
+
_toggleFds(fds.id)} style={{
+ padding: '6px 12px', cursor: 'pointer', fontSize: 12,
+ display: 'flex', alignItems: 'center', gap: 8,
+ background: sel ? '#f3e5f5' : 'transparent',
+ }}
+ onMouseEnter={e => { if (!sel) e.currentTarget.style.background = '#f5f5f5'; }}
+ onMouseLeave={e => { if (!sel) e.currentTarget.style.background = ''; }}
+ >
+
+ {sel ? '✓' : ''}
+
+ {getPageIcon(`feature.${fds.featureCode}`) || '\uD83D\uDDC3\uFE0F'}
+ {fds.label} – {fds.tableName}
+
+ );
+ })}
+ >
+ )}
+