/** * @file page.tsx * @description Server component acting as the welcome landing page, redirecting authenticated users to the summary view or presenting sign-in and register options. */ import { auth } from "@/auth"; import { redirect } from "next/navigation"; import Link from "next/link"; /** * Renders the welcome landing page. Checks for an active session and redirects * if logged in; otherwise, provides navigation links to sign in or register. * * @async * @returns {Promise} The rendered welcome page component. */ export default async function WelcomePage() { const session = typeof auth === "function" ? await auth() : null; if (session) { redirect("/summary"); } return (

Flowstate

Welcome Page

Sign In {/* TODO */} Register
); }