Files
nrx.sh/src/app/clipboard/page.tsx
Nareshkumar Rao 8b46bf354e
All checks were successful
Build / build (push) Successful in 4m33s
ensure login for clipboard
2025-04-22 12:22:06 +02:00

19 lines
393 B
TypeScript

"use server";
import { auth, signIn } from "@/auth";
import { getClipboard } from "./action";
import ClipboardComponent from "./ClipboardComponent";
export default async function ClipboardPage() {
if ((await auth())?.user == null) {
await signIn();
}
const clipboard = await getClipboard();
return (
<>
<ClipboardComponent initialContent={clipboard} />
</>
);
}