// /pages/einstellungen.tsx import React, { useState, useEffect } from "react"; import { useAppDispatch } from "../redux/store"; import { fetchSystemSettingsThunk } from "../redux/thunks/fetchSystemSettingsThunk"; import GeneralSettings from "../components/main/settingsPageComponents/GeneralSettings"; import OPCUAInterfaceSettings from "../components/main/settingsPageComponents/OPCUAInterfaceSettings"; import DatabaseSettings from "../components/main/settingsPageComponents/DatabaseSettings"; import NTPSettings from "../components/main/settingsPageComponents/NTPSettings"; import UserManagementSettings from "../components/main/settingsPageComponents/UserManagementSettings"; export default function Settings() { const [activeTab, setActiveTab] = useState("tab1"); const dispatch = useAppDispatch(); useEffect(() => { dispatch(fetchSystemSettingsThunk()); }, [dispatch]); return (
{/* Tab-Navigation */}
{/* Tab-Inhalt */}
{activeTab === "tab1" && } {activeTab === "tab2" && } {activeTab === "tab3" && } {activeTab === "tab4" && } {activeTab === "tab5" && }
); }