mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
20 lines
538 B
TypeScript
20 lines
538 B
TypeScript
import ServerList from "@/components/ServerList";
|
|
import ServerOverview from "@/components/ServerOverview";
|
|
|
|
import ServerGlobal from "./ClientComponents/Global";
|
|
|
|
export default async function Home({
|
|
searchParams,
|
|
}: {
|
|
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
|
|
}) {
|
|
const global = (await searchParams).global;
|
|
return (
|
|
<div className="mx-auto grid w-full max-w-5xl gap-4 md:gap-6">
|
|
<ServerOverview />
|
|
{!global && <ServerList />}
|
|
{global && <ServerGlobal />}
|
|
</div>
|
|
);
|
|
}
|