setStatus("offline")}
+ onClick={() => (global ? null : setStatus("offline"))}
className={cn(
"cursor-pointer hover:ring-red-500 ring-1 ring-transparent transition-all",
{
diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx
index 82d2d8afc..b96454062 100644
--- a/app/(main)/page.tsx
+++ b/app/(main)/page.tsx
@@ -1,13 +1,19 @@
import ServerList from "@/components/ServerList";
import ServerOverview from "@/components/ServerOverview";
-import Global from "./ClientComponents/Global";
-export default function Home() {
+import ServerGlobal from "./ClientComponents/Global";
+
+export default async function Home({
+ searchParams,
+}: {
+ searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
+}) {
+ const global = (await searchParams).global;
return (
- {/* */}
-
+ {!global && }
+ {global && }
);
}
diff --git a/bun.lockb b/bun.lockb
index d9ddedbcf..e1e678db4 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/components/ServerList.tsx b/components/ServerList.tsx
index c57850a06..bf94cd6ca 100644
--- a/components/ServerList.tsx
+++ b/components/ServerList.tsx
@@ -1,5 +1,4 @@
import ServerListClient from "@/app/(main)/ClientComponents/ServerListClient";
-import React from "react";
export default async function ServerList() {
return ;