// /components/gisPolylines/tooltip/generateLineTooltipContent.js // KEIN useSelector hier! export function generateLineTooltipContent(statis, matchingLine, values, stations) { const station = stations.find(s => s.IdLD === statis.IdLD); const stationName = station?.LD_Name || "N/A"; const messageDisplay = values.messages .map( msg => ` ${msg.message}
` ) .join(""); return `
${statis.ModulName || "Unknown"}
${statis.ModulTyp || "N/A"}
Slot: ${statis.Modul || "N/A"}
Station: ${stationName}
${messageDisplay}

${ values.messwert ? `Messwert: ${values.messwert}
` : "" } ${ values.schleifenwert ? `Schleifenwert: ${values.schleifenwert}` : "" }
`; }