This commit is contained in:
2026-08-29 14:37:17 +02:00
parent b131d91686
commit 7da0f97e60
7 changed files with 50 additions and 5 deletions
+18
View File
@@ -0,0 +1,18 @@
import Enclave from "@/app/app";
import ServerSidebar from "./ServerSidebar";
import MainPageSidebar from "./MainPageSidebar";
export default function Sidebar({
appRef,
}: {
appRef: React.RefObject<Enclave | null>;
}) {
switch (appRef.current?.sidebarPageKind) {
case "main":
return <MainPageSidebar appRef={appRef} />;
case "server":
return <ServerSidebar appRef={appRef} />;
}
return <MainPageSidebar appRef={appRef} />;
}