"use client"; //components/main/uebersicht/NetworkInfo.tsx import React from "react"; import { useSelector } from "react-redux"; import { RootState } from "../../../redux/store"; const NetworkInfo: React.FC = () => { // Werte direkt aus Redux holen const ip = useSelector((state: RootState) => state.variables.ip) || "Unbekannt"; const subnet = useSelector((state: RootState) => state.variables.subnet) || "Unbekannt"; const gateway = useSelector((state: RootState) => state.variables.gateway) || "Unbekannt"; const opcUaZustand = useSelector((state: RootState) => state.variables.opcUaZustand) || "Unbekannt"; const opcUaNodesetName = useSelector((state: RootState) => state.variables.opcUaNodesetName) || "Unbekannt"; return (
IP-Adresse
{ip}
Subnet-Maske
{subnet}
Gateway
{gateway}
Status
{opcUaZustand}
Nodeset Name
{opcUaNodesetName}