import React from "react" import {Homepage} from "@/apps/Homepage/Homepage.tsx" import {Terminal} from "@/apps/SSH/Terminal/Terminal.tsx" import {SSHTunnel} from "@/apps/SSH/Tunnel/SSHTunnel.tsx"; import {ConfigEditor} from "@/apps/SSH/Config Editor/ConfigEditor.tsx"; import {SSHManager} from "@/apps/SSH/Manager/SSHManager.tsx" function App() { const [view, setView] = React.useState("homepage") const [mountedViews, setMountedViews] = React.useState>(new Set(["homepage"])) const handleSelectView = (nextView: string) => { setMountedViews((prev) => { if (prev.has(nextView)) return prev const next = new Set(prev) next.add(nextView) return next }) setView(nextView) } return (
{mountedViews.has("homepage") && (
)} {mountedViews.has("ssh_manager") && (
)} {mountedViews.has("terminal") && (
)} {mountedViews.has("tunnel") && (
)} {mountedViews.has("config_editor") && (
)}
) } export default App