import { getServerSession } from "next-auth";
import { LoginDialog } from "@/components/login-dialog";
import { authOptions } from "@/lib/auth/auth-options";
import { getSessionDiscordId } from "@/lib/auth/auth";
import { ShareUploadClient } from "@/app/share/client";
export const dynamic = "force-dynamic";
export default async function SharePage() {
const session = await getServerSession(authOptions);
const discordId = getSessionDiscordId(session);
if (!discordId) {
return (
คนที่มีลิงก์สามารถเปิดอ่านได้