+
ไกด์เกนชินไม่ใช่เกมมือถือ
-
>
diff --git a/components/public/site-header.tsx b/components/public/site-header.tsx
index f627d86..ef652b1 100644
--- a/components/public/site-header.tsx
+++ b/components/public/site-header.tsx
@@ -1,38 +1,44 @@
import Image from "next/image";
import Link from "next/link";
import { Suspense } from "react";
+import { MenuIcon } from "lucide-react";
-import { Button } from "@/components/ui/button";
+import { Button, buttonVariants } from "@/components/ui/button";
+import { Sheet, SheetClose, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from "@/components/ui/sheet";
import { VisitorPresence } from "@/components/public/visitor-presence";
import { getAdminSession } from "@/lib/auth/server";
-async function AdminEditLink({ editHref }: { editHref: string }) {
+async function AdminEditLink({ editHref, mobile = false }: { editHref: string; mobile?: boolean }) {
const isAdmin = Boolean(await getAdminSession());
return isAdmin ? (
-
}
- >
- ไปหน้าแก้ไข
-
+ mobile ? (
+
}
+ >
+ ไปหน้าแก้ไข
+
+ ) : (
+
}>
+ ไปหน้าแก้ไข
+
+ )
) : null;
}
export function SiteHeader({ editHref = "/admin", guideId }: { editHref?: string; guideId?: string } = {}) {
return (
-
+
ไกด์เกนชินไม่ใช่เกมมือถือ
-
+
}>
Commission
@@ -46,11 +52,32 @@ export function SiteHeader({ editHref = "/admin", guideId }: { editHref?: string
Stygian Guide
-
+
+
+ }>
+
+
+
+ เมนู
+
+ }>
+
+ Commission
+
+ }>
+
+ Stygian Guide
+
+
+
+
+
+
+
);
diff --git a/components/public/visitor-presence.tsx b/components/public/visitor-presence.tsx
index 2716ecc..ee5879c 100644
--- a/components/public/visitor-presence.tsx
+++ b/components/public/visitor-presence.tsx
@@ -11,19 +11,22 @@ export function VisitorPresence({ guideId }: { guideId?: string }) {
- ทั้งหมด {counts?.global ?? "-"}
+ ทั้งหมด {counts?.global ?? "-"}
{guideId ? (
- ไกด์นี้ {counts?.guide ?? "-"}
+ ไกด์นี้
+ G {counts?.guide ?? "-"}
) : null}