"use client"; import React, { useState } from "react"; function AnalogeEingaenge() { const [activeConfig, setActiveConfig] = useState(null); // Beispiel-Daten, du kannst die Daten dynamisch laden const inputs = [ { id: 1, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, { id: 2, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, { id: 3, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, { id: 4, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, { id: 5, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, { id: 6, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, { id: 7, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, { id: 8, value: 0, name: "------------------", uG: true, uW: true, oW: true, oG: true, }, ]; return (

Analoge Eingänge

{inputs.map((input) => (

XIO-PM {input.id}

Eingang Wert Bezeichnung uG uW oW oG Konfig
{input.id} {input.value} {input.name}
))}
{/* Modal für Konfiguration */} {activeConfig && (

Konfiguration - XIO-PM {activeConfig}

{/* Konfigurationsformular hier einfügen */}
{/* Weitere Felder hier hinzufügen */}
)}
); } export default AnalogeEingaenge;