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 82d2d8a..b964540 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 d9ddedbcf5bb17d698881974380853ca9923a658..e1e678db416804416ccac83a1c1b3f9f710b138e 100755
GIT binary patch
delta 39
tcmaF2Lgw8HnT8g|7N!>FEiCt|*%{-E^o;b3+n-gl05R+KXVq*SGXOrk5BUH9
delta 39
qcmaF2Lgw8HnT8g|7N!>FEiCt|*_jx?p#51j3lOtze^$-bF#`Z6SPrQG
diff --git a/components/ServerList.tsx b/components/ServerList.tsx
index c57850a..bf94cd6 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 ;