Files
nrx.sh/src/app/clipboard/page.tsx

19 lines
393 B
TypeScript
Raw Normal View History

2025-04-08 00:23:36 +02:00
"use server";
2025-04-22 12:22:06 +02:00
import { auth, signIn } from "@/auth";
2025-04-08 00:23:36 +02:00
import { getClipboard } from "./action";
import ClipboardComponent from "./ClipboardComponent";
export default async function ClipboardPage() {
2025-04-22 12:22:06 +02:00
if ((await auth())?.user == null) {
await signIn();
}
2025-04-08 00:23:36 +02:00
const clipboard = await getClipboard();
return (
<>
<ClipboardComponent initialContent={clipboard} />
</>
);
}