diff --git a/client/src/pages/tools/linux/components/ServerDialog/ServerDialog.jsx b/client/src/pages/tools/linux/components/ServerDialog/ServerDialog.jsx new file mode 100644 index 0000000..b04faf5 --- /dev/null +++ b/client/src/pages/tools/linux/components/ServerDialog/ServerDialog.jsx @@ -0,0 +1,46 @@ +import {DialogContext, DialogProvider} from "@/common/contexts/Dialog"; +import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; +import {faClose, faServer} from "@fortawesome/free-solid-svg-icons"; +import {useContext, useState} from "react"; +import {ServerContext} from "@/common/contexts/Server"; +import "./styles.sass"; +import ServerItem from "@/pages/tools/linux/components/ServerDialog/components/ServerItem"; + +const Dialog = () => { + const close = useContext(DialogContext); + const servers = useContext(ServerContext)[0]; + + const [createServer, setCreateServer] = useState(false); + + return ( + <> +
+
+ +

Serverkonfiguration

+
+ close()}/> +
+ +
+
+ {servers.map((server) => ())} + {!createServer && servers.length === 0 &&

Keine Server vorhanden

} + {createServer && setCreateServer(false)} />} +
+ +
+ +
+
+ + ); +} + +export const ServerDialog = ({onClose}) => { + return ( + + + + ); +} \ No newline at end of file