"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 Address

IP-Adresse

{ip}

subnet mask

Subnet-Maske

{subnet}

gateway

Gateway

{gateway}

OPC-UA

Status

{opcUaZustand}

Nodeset Name

{opcUaNodesetName}

); }; export default NetworkInfo;