import { getServerSession } from "next-auth/next";
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
import { redirect } from "next/navigation";

export default async function FlowPage() {
  const session = await getServerSession(authOptions);

  if (!session) {
    redirect("/signin");
  }

  return (
    <div className="h-[calc(100vh-4rem)] overflow-hidden">
      <iframe
        src="https://lab.slm-lab.net/flow"
        className="w-full h-full border-0"
        style={{ display: 'block' }}
        allow="fullscreen"
      />
    </div>
  );
} 