NeahFront3/app/mediations/page.tsx
2025-04-09 18:02:58 +02:00

27 lines
775 B
TypeScript

import { getServerSession } from "next-auth/next";
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
import { redirect } from "next/navigation";
export default async function Page() {
const session = await getServerSession(authOptions);
if (!session) {
redirect("/signin");
}
return (
<main className="w-full h-screen bg-black">
<div className="w-full h-full pt-12">
<iframe
src={process.env.NEXT_PUBLIC_IFRAME_MEDIATIONS_URL}
className="w-full h-full border-none"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
style={{
marginTop: '-64px'
}}
allowFullScreen
/>
</div>
</main>
);
}